Cordova/phonegap Load External Site In Main Cordova Webview
What i want I have external web-resource that i want cordova webview to simple open and be able to navigate through its inner navigation. Description InAppBrowser docs said The In
Solution 1:
Solved this issue using following rules on both ios and android:
<accessorigin="*" /><allow-navigationhref="*" /><allow-navigationhref="http://*/*" /><allow-navigationhref="https://*/*" /><allow-navigationhref="tel:*" /><allow-navigationhref="sms:*" /><allow-navigationhref="mailto:*" /><allow-navigationhref="geo:*" />
If you stuck on same problem you also need to know following:
- Multiple cordova versions has different rules structure and behaviours when docs isn't always correct about current version. In my researches i found this article very useful https://github.com/jessemonroy650/top-phonegap-mistakes/blob/master/whitelist-matrix.md
- My main problem was "not knowing" that allow-intent overrides allow-navigation. Make sure you understand how it works
Post a Comment for "Cordova/phonegap Load External Site In Main Cordova Webview"