Cannot exit app with ionic2 on iOS? Is there a way to exit app?

3,100

On the iPhone there is no concept of quitting an app. The only action that should cause an app to quit is pressing the Home button on the phone, and that's not something developers have access to.

According to Apple, your app should not terminate on its own. Please check this link

Share:
3,100
Carry All
Author by

Carry All

Updated on December 03, 2022

Comments

  • Carry All
    Carry All over 1 year

    I've build an Ionic2 app and using

    this.platform.exitApp()
    

    in app.component.ts to exit app.

    On Android it's work well, but got this error on iOS

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