Reputation: 513
I'm working with Ionic 3.
Android hardware back-button works nice in most situations - but when pressed on the parent page (init page) it closes/hides the app (as it is supposed to do) but it also seems to "close the app" - which causes app to load the whole system again when opened again.
If I hide the app by pressing home-button or open another app by pressing switch-app-button and then open my Ionic app again it opens immediately - but if my app is closed with back-button it will show Splash Screen again and loads the whole app again.
Is there any solution to modify hw-back-button action only to hide the app and not to close the tab-navigation-base-page?
Upvotes: 0
Views: 499
Reputation: 1608
YOu should be able to override the NavBack Button Take a look at this
https://github.com/ionic-team/ionic/issues/5071
there are a few workaround people have implemented. Look at Tomsun's post.
https://github.com/ionic-team/ionic/issues/5071#issuecomment-179789428
Upvotes: 0