ionic-team / ionic-team/cordova-plugin-ionic-webview

Inject cordova.js in a remote website

Open
#617 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

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.**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.