Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When a user launches "new window" in a home screen app

When a user launches "new window" link in a home screen app.

In Mobile Safari this type of action would open a new tab. What happens if the app is on the home screen and has name="apple-mobile-web-app-capable", content="yes" active.

Will the window still technically be in another tab, although you cant get back to the original one - or will it just navigate within the current tab?

like image 434
fancy Avatar asked Nov 10 '11 21:11

fancy


1 Answers

First of all, unfortunately window.open method does not work at all.
Instead, a < a href="..". >...< /a > works and by default launches Safari and opens the link in a normal browser window (so, if the user wants to come back to the app, he has to doubleclick the iPad key and switch back to it).
You can force the link to open inside the app (so replacing the current page) with the tricks listed here: iPhone Safari Web App opens links in new window

like image 94
lucaferrario Avatar answered Oct 06 '22 00:10

lucaferrario