Only applicationWillResignActive called when iPhone shuts down?

后端 未结 3 1243
南笙
南笙 2021-02-15 15:26

Hallo experts,

I\'ve tested what\'s happing with my app when the iPhone is switched off while the app is active. For this purpose I logged the callback

3条回答
  •  [愿得一人]
    2021-02-15 16:17

    I think that your test is probably correct. The app is no longer active yet it has not gone into the background -- kind of like when I call comes in -- so I think the notifications make sense.

    What should you do about it? My suggestion would be nothing. It seems to me that this event happens so infrequently that it's not worth worrying about. If you want to go belt and braces then saving state in ‘applicationWillResignActive‘ should work as long as there's not much to store.

提交回复
热议问题