- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using XDK 3641 with a Cordova project and the inAppBrowser to load external pdf's in my app. I am running the app in App Preview.
This works well on iOS for iPhone but when running on an iPad the is no exit or done button in the new browser window so the user has to kill the app.
Code is:
window.open(url, '_system', 'location=yes');
What could be causing this behaviour?
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rohan,
Because this is a HTML5 app running on the phone, using window.open would replace your app with the web page you're loading. You could try serving the page in an iframe. The reason you would see a different behavior from App Preview is, App Preview is also using a similar strategy of previewing your app in a container not so dissimilar from an iframe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jerroyd but it does work on an iPhone, a new window is presented to view the content and I have a done button to return to the app.
I would have thought that on an iPad the behaviour would be the same?
Iframe is an issue due to external contact servers not allowing their use, I have tried that but would ideally like the above behaviour on all devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rohan -- use the inAppBrowser API, not window.open and see the API docs here > https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen < I suspect the "iOS only" option named "closebuttoncaption" is what you need.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page