2

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?

thegrinner
  • 11,546
  • 5
  • 41
  • 64
balderman
  • 22,927
  • 7
  • 34
  • 52

1 Answers1

2

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

Paulw11
  • 108,386
  • 14
  • 159
  • 186