I’m currently working on a PWA using Ionic 4 and I really like the experience so far. After all the struggles with Xamarin and Phonegap this is really a relieve.
However every technology has it’s tradeoffs and one of the problems we encountered when using Ionic was the following:
We were using the ion-back-button control for our navigation inside the app.
From the documentation:
The back button navigates back in the app's history upon click. It is smart enough to know what to render based on the mode and when to show based on the navigation
This control worked perfectly until the user decides to do a full page refresh(don’t ask why he/she should do that). After a full page refresh the navigation stack is lost and the user is stuck on the current page without any navigation option to go back.
Luckily a colleague found a solution and it was all there in the documentation:
The ion-back-button has a defaultHref property that can be set to a url. This url is used to navigate back when there is no history.
Thanks Jens for finding this solution!