How to open a scheme relative URI in an Ionic Capacitor iOS app #4251
Unanswered
madHorse54
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'm running into this as well. Was a solution or workaround ever found? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In an Ionic/Capacitor iOS app, I need to use an external library; the main script (jwplayer.is ,in my case) requests other external JS modules through a scheme relative URI (eg: //ssl.p.jwpcdn.com/player/v/8.19.0/jwpsrv.js).
While in the Android version is possible to set 'androidScheme': 'https' in the capacitor.config.json, this is not allowed on iOS.
So that the request become capacitor://ssl.p.jwpcdn.com/player/v/8.19.0/jwpsrv.js and of course it fails because the resource cannot be found.
At the moment, instead of loading the script from CDN, I have embedded it in the asset folder and changed the URI to 'https://... ' from '//...', but I have still problems because on of the requested module makes other requests using a schema relative URI.
Is there any way to force the protocol to 'https'? .
Thanks for any idea.
Beta Was this translation helpful? Give feedback.
All reactions