In my app i have 2 pages home.ts and page2.ts, home page has a button to open the page2,
and in page 2 i have another button that will open a model that is page3 like below
let modal = this.modalCtrl.create(page3 );
so far ok, if i opened the modal, pressing device back button will close the modal,and pressing again will pop the page2 and home page wil be now the active page, it will quit the app if i press the device backbutton again.
i want to use a confirm alert box in home page before quit the app, but device backbutton should work normally in other pages (page2, page3) ,