cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
Inject cordova.js in a remote website
Hello,
Cordova app starts by loading a remote web app. On the old UIWebview, everything was fine, but now with WKWebkit, I cannot access cordova.js file. Is it a way to inject/access cordova.js in this context, on iOS?
Thank you
UPDATE If I debug the app with safari and run in console cmd: window.location.replace("ionic://localhost/cordova.js"); cordova.js is loaded OK so I can access it at that URL The problem is by putting in index.html of the remote website I get: [blocked] The page at https://abc.ab/ was not allowed to run insecure content from ionic://localhost/cordova.js.
@florindumitru
Hi,
I'm also facing the same problem. Did you able to resolve this issue or found any workaround, if so need help.
Thanks,