Links to the iOS Phonegap webpage embedded in the open iframe browser, not in the iframe

When embedding a web page through an iframe in the phone, any links on this web page will open a system browser instead of an iframe. This only happens on iOS and only on the compiled version. Android and the phonegap app for iOS work the same way as links to web pages open inside an iframe.

Config.xml settings such as "stay-in-webview" and "Cordova.plist" seem outdated and no longer work. Also, the preference for "ChildBrowser" is only blackberry. Finally, this "inAppBrowser" plugin has the same problem. It loads the webpage very well inside, but any links activate Safari opening.

The problem can be recreated by simply launching a new phone application, introducing an iframe, and then creating for iOS / export using xcode.

Any help would be greatly appreciated!

+4
source share
1 answer

Solution: At least in the last telephone conversation (6.0 at the moment), the presence of the tags below for compiled iOS causes this problem. My best guess is that by letting these intentions inadvertently tells iOS to open any / all of the embedded links in Safari.

I just deleted the tags below and everything loads correctly in the iframe <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" />

+4
source

All Articles