IPhone app update in background

I was wondering what would happen if the user updates the application (through the app store / update) while the application is still in the background on iOS 4.x

I am planning a big update for my next version, and I wanted to know if this is a special case that I have to deal with in order to avoid a crash.

Or can I trust the OS to restart the application the next time it starts (or to kill the background process during the upgrade), finding that the application has changed instead of just doing "applicationWillEnterForeground"?

+4
source share
2 answers

iOS / Apple will take care of this use case, you do not need to worry about it. Your application will be terminated, so the next time the user closes his icon, you will have a restart.

+4
source

Any application suspended on the background of iOS can be terminated by the OS at any time. The OS knows that the β€œright thing” needs to be done when the application icon is displayed again next. An application update would be just another case of the same event.

0
source

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


All Articles