Hardware Backbutton

Hi, i have a TabControllerPage which contains 4 pages.

When im on tab2Root , tab3Root, tab4Root i want to handle that user always go back to tab1Root when click backButtonPress, and when click backpressbutton again from tab1Root, it will exit the app.

How can i do that?

I tried to implements this method:

platform.registerBackButtonAction(() => {

in tab2Root constructor, but it just add a page over tab2Root, but i want to not get stacks, but always to back to tab1Root, and from there i want to exit the app.

1 Like

I am also facing similar problem, hardware backbutton registering not working. not even getting in to the function. it directly closes the application. any solutions found ? I even tried setting priorities