When I click the button present on the popover than I push another page on that button click (Navigate to the other page).
On the pushed page I get the back button on the navbar and that back button works perfectly.
On the other hand, if I clicked the hardware back button on the pushed page than it says “You can’t remove all the pages in the navigation stack. nav.pop() is probably called too many times.”
It does not allow me to go to the back page when clicked on the hardware back button.
Here is the code when the button is clicked on the popover page.
this.viewCtrl.dismiss().then(() => {
this.app.getRootNavs()[0].push(SettingPage)
});