I am working on an app (currently, Android only) that basically has 3 pages. The pages are as follows:
Index
CodeSearch
DealerLocater
From the index page, I can either select to go to CodeSearch or DealerLocater. If I go to either of these pages, then click BACK, it works as it should and goes back to index.html.
Now, from the CodeSeacrh page, the user has an option to go to DealerLocater. Going to that page works as it should. When clicking back from the DealerLocater pag, it goes back to CodeSearch, as it should. Now, here is where it gets interesting. If I click the back button here, I get a page not found message (my 404.html page).
How can I fix this so it goes back 1 page on each click? Thanks in advance…
Issue is that you have pushState enabled. If it is a cordova app, you need to disable it. Otherwise, it must be enabled on main View only. And check the pushStateRoot View’s parameter. If app running not on server root then it should reflect it
@nolimits4web I saw a post you made last night stating that, so I did remove pushState. However, I am still having the same issue where after navigating to 3rd level, I get a 404 trying to go back twice…
@nolimits4web
Hi Vladimir,
Framework7 is fantastic. And without much coding knowledge, we are able to use the documentation and kitchen-sink examples to create our own apps. A person like me doesn’t know Javascript at all and I’m a basic web developer and I don’t want to learn it in detail for my requirements. But, most of us have this problem - Back button doesn’t work in Android. Most of us are processing it with Adobe Phonegap. Even when we look at the documentation of views parameters, we can hardly understand what to do next. Routes, Views are very confusing. Could you please help by creating a seperate page for known issues (like back button in android) or provide the information with example in views documentation for this specific issue?
Almost each of us who are new to this are struggling with this part. Thanks in advance!
Thank you so much. I could get it corrected with your suggestions and notes in different posts related to this issue.
I had wrongly added an additional view statement when I was trying to test it (referring to the f7 documentation, but the same was absent in downloaded kitchen-sink example).
When adding the features as needed, an additional view statement was introduced wrongly. After identifying this, I reintroduced pushstate and pushStateSeperator as you advised. It worked. It was my mistake. Thanks a lot for your advice.
There is really no limits for web.
The back button is not working sometimes. It is not working when we are going to multi-pages and the back button is not working after opening and closing some pages. Please help.