jquery/jquery-mobile — Issue #3729: Opening history ignored in iPhone homescreen webapp
Author: adriancd
Created: 2012-03-03 23:13:55+00:00
State: open

I have a webapp which stores the users data as they progress so that if they click on an external link while in the homescreen app mode on an iphone and leave the app to view a webpage or similar, when they return the webapp will resume at the same position

When the web app reopens, it checks the local storage and calls 2 or 3 pages instantly. This works fine but the back button in homescreen webapp mode will appear but nothing happens when clicked. I can start clicking through pages in the webapp and then the back button will work but the rapidly generated pages at the beginning are ignored

To list the steps:

Homescreen iphone webapp opens
onload called
js checks local storage and creates landing page then 1 or 2 pages immediately after
pages are correctly created but user cannot use back button to go back

If the webapp is used in normal safari mode then the back button navigates correctly through these auto generated pages at the start so the problem is only in homescreen mode

I am using 1.0.1 and latest iphone