I am using cordova for an application, one part of the application is that I need to go to another screen, then return back to the previous with some data, I do that by passing some data in a get request and that is all fine, I have data persistence working as it should, now the only problem I face is when someone presses back and they are returned to the separate page instead of the page “they were on before”.
Is there any way to tell that the user pressed back to get to that page. With that said, is there any way to force the user to go back again if the user pressed back.
For example….
main screen > secondary > picks date from another screen > returns to secondary > presses back > this should be the main screen.
The way I did this was to implement my own back stack using javascript,
History.jsandwindow.localStorage.