Can't close app using ionic2 on iOS

I am creating an Ionic2 app and using

this.platform.exitApp()

      

in app.component.ts to exit the app.

On Android it works well but got this error on iOS

undefined is not an object (evaluating 'e.navigator.app.exitApp')

      

+6


source to share


1 answer


There is no concept of exiting an application on the iPhone. The only action that should close the app is to press the Home button on the phone and developers don't have access to it.



According to Apple, your application shouldn't terminate by itself. Please check this link

+10


source







All Articles