question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Setting iosScheme to http has no effect

See original GitHub issue

Bug Report

Capacitor Version

@capacitor/cli 1.3.0
@capacitor/ios 1.3.0
@capacitor/android 1.3.0
@capacitor/core 1.3.0

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Setting iosScheme in capacitor.config.json to http makes no difference. App is still being loaded from capacitor:// I already removed the ios platform completely and an re-added it, but that didn’t work unfortunatley. Am I missing something? Do I need to set something in the plist file or anywhere else?

Expected Behavior

Setting iosScheme in capacitor.config.json to http should make capacitor load the app from http:// instead of capacitor://

npm --version output: 6.9.0 node --version output: v12.13.0 pod --version output (iOS issues only): 1.7.5

Thank you for your help and awesome products!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
maluacommented, Jun 26, 2020

as far as i can tell, stripe.js now also sees file:// and ionic:// as safe origins! in the stripe js file you can find this function: key: "_ensureHTTPS", value: function () { var e = window.location.protocol, t = -1 !== ["https:", "file:", "ionic:"].indexOf(e),

I also test it right now, and it works if you serve your app from ionic:// on ios!

0reactions
ionitron-bot[bot]commented, Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cordova-plugin-ionic-webview - custom scheme not working ...
I am able to use this plugin on iOS but on Android the App crashes on launch. MY CONFIG.XML: <allow-navigation href="cordovaios://*" /> ...
Read more >
Capacitor Configuration | Capacitor Documentation
If your app is not using a bundler, set this to `true`, then Capacitor ... If the device uses a lower WebView version,...
Read more >
Apple Pay and Google Pay do they work on Ionic?
bug : Setting iosScheme to http has no effect · Issue #2173 · ionic-team/capacitor · GitHub. Other possible workarounds:.
Read more >
app.json / app.config.js - Expo Documentation
If specified, this overrides the backgroundColor key. Must have the same dimensions as foregroundImage , and has no effect if foregroundImage` is not...
Read more >
cordova-plugin-ionic-webview-fork-android-only - npm
There are no other projects in the npm registry using ... url (i.e <allow-navigation href="http://app/*"/> if Hostname is set to app ).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found