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.