Ionic 3 Prevent app exit

0

I made an application using Ionic 3. When it is in the main screen and in case the user clicks the button back the application terminates.

I wanted to put a "prevent appexit" that verifies that the user is on the main screen and does not let any event occur.

    
asked by anonymous 21.09.2017 / 16:21

1 answer

0

Try:

platform.registerBackButtonAction(() => {
    // ACAO que deseja que seja realizada.
});
    
24.09.2017 / 21:09