How to quit the app in Ionic 4

Which is the exitApp subistitute for Ionic 4 since platform.exitApp() is no longer available?

I’m also looking forward for this question, as I settled on using a native plugin called

Hi abussar, thanks for your answer. I don’t know why but this plugin did not work for me. The compiler did not find the method “cordova.plugins.exit()” so I’d use this “navigator[‘app’].exitApp()” and worked for me.

Thank you anyway.

1 Like

work for me.

in my page showing error “cannot fine app name” what to do

can you show the code here

Hii #flaviotobias in which page have to use this line “navigator[‘app’].exitApp()” for quit app .
Is it use in component page or dashboard page?

hi, I tried to input that code, but it says navigator is undefined.