Handle the application when the device turns off

Is it possible to process / update the application when the device is disconnected in iOS? At least I can get the time when the device turned off? Is it possible? If yes, please offer me an answer. If not, tell me the reason.

0
source share
3 answers

I also had problems. see: Getting the current time when the device was closing

Ive tried several ways as follows.

  • applicationWillTerminate: . , . , . , . , , . . .
  • /( ) () NSUserDefaluts, , , , . .

. , , .

+2

As far as I know, only a few notifications are allowed from UIDevice, you can find them here .

There are some undocumented private frameworks that can provide you with such information, but if you use them, your application will be rejected.

But you can use Enterprise Edition to deploy your application.

0
source

Source: https://habr.com/ru/post/1651516/


All Articles