balderman balderman - 1 year ago 139
Android Question

iOS equivalent for Android BOOT_COMPLETED and ACTION_SHUTDOWN

In an Android application the app can "listen" to ACTION_BOOT_COMPLETED and ACTION_SHUTDOWN events.

Is that possible under iOS?
If it is - how can iOS app listen to those events?

Answer Source

The application lifecycle and application states on iOS are described in the iOS Application Programming Guide

Essentially there are notifications for your app starting, moving to the background, moving back to the foreground and terminating (there are also some background execution modes) but as Dekel said in comments, an app doesn't receive any direct notifications that the device is shutting down or was restarted.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download