Bhavik P.
Bhavik P.

Reputation: 915

Lifecycle of iOS App During Update

I would like to know what state is the app in when an app updates.

For example: Lets say we have an app running (called Le Music) that is playing music in background mode.

Now we go to the store and see there is an update available and we tap update. What is the life cycle on the current version of Le Music during the transition from old version of the app to the new version

Upvotes: 5

Views: 860

Answers (1)

matt
matt

Reputation: 535304

Your app will be replaced. That means it will be terminated. You are running in the background ex hypothesi, so the only event you might hope to get is applicationWillTerminate. (However, I wouldn't count on it: see this answer.) If you were in the background but not running, you wouldn't get any event at all.

Upvotes: 4

Related Questions