When calling window.open()
in a iOS web app, the page opens in the web app instead of mobile safari.
How can I force the webpage to open in mobile safari?
Note: Using straight <a href>
links is not an option.
When calling window.open()
in a iOS web app, the page opens in the web app instead of mobile safari.
How can I force the webpage to open in mobile safari?
Note: Using straight <a href>
links is not an option.
Turns out it is NOT POSSIBLE to escape the iOS web app with a JavaScript
window.open()
. If you want a link to open in mobile safari you have to use<a href>
links.Vue implementation. Hope will helpful.
You can force iOS to open a link from PWA in safari using window.open() provided you either use a different sub-domain or use http instead of https.
For example for take example.com
Note: My server will redirect http to https once opened in the browser. So there is no security concern.
(or)
This is possible. Tested with iOS5 stand-alone web app:
HTML:
JavaScript:
Can be tested here: http://www.hakoniemi.net/labs/linkkitesti.html