Caching Nav State For iOS
MattGreenwood1 opened this issue · 1 comments
I'm submitting a ... (check one with "x")
[ ] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com
Current behavior:
At present, on Ionic when using as a PWA on iOS (11.3), the OS doesn't store the navstate when briefly swapping to another app and returning, meaning the user ends back at the root screen very frequently. The end result is a very non-native feel (see this discussion the ionic forums). I realise that this is a limitation of the OS and not a bug, but it would be helpful if the framework could respond to this by caching the navstate and restoring it somehow to mimic a native feel (until Apple get their act together).
Expected behavior:
User briefly exits an app, enters another, then re-opens the app and finds themselves back on the page they were last in.
Hey, thanks for opening an issue with us! It is out of the scope of the PWA Toolkit to code around OS issues. This can also become a maintainability issue as first, we would need to watch for Apple fixing this bug and then decide when to remove this workaround as that update makes its way out to users. It would also potentially leave alot of PWAs in production that all the sudden have a workaround that is not needed anymore when a new version of iOS comes out. Because of these issues I am going to close this issue for now. Thanks!