How to exit an app programatically in ionic 2


#1

I want to exit an app programmatically if authentication fails.


#2

Just use
this.platform.exitApp();


#3

Tried on IOS but no luck…


#4

Ios will not allow to exit app programatically . if you try to do that then app store will reject your app.this.platform.exitApp(); this will work with android


#5

Yes we can do that…

There is also an exit function in iOS