Julien Cartal
Julien Cartal

Reputation: 43

iPhone app update while still in background

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

I am planning a big update for my next release and I wanted to know if it is a special case I have to handle to avoid a crash.

Or can I trust the OS to restart the application on the next launch (or to kill the background process during the update), detecting that the application has changed instead of just doing a "applicationWillEnterForeground"?

Upvotes: 4

Views: 745

Answers (2)

hotpaw2
hotpaw2

Reputation: 70703

Any app in suspended in the iOS "background" can get terminated by the OS at any time. The OS knows to do the "right thing" when the app's icon is tapped on again next. An app update would just be another case of that same thing happening.

Upvotes: 0

lxt
lxt

Reputation: 31304

iOS / Apple take care of that use-case for you, you don't need to worry about it. Your app will get terminated, so when the user next taps its icon you will have a relaunch.

Upvotes: 4

Related Questions