cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

Inject cordova.js in a remote website

Open florindumitru opened this issue 5 years ago • 1 comments

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 avatar Oct 05 '20 10:10 florindumitru

@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,

imselvakumar avatar Jan 11 '21 15:01 imselvakumar