if user tap update, does App Store update users app with the latest update?

If user tap to update, after I released 3 new updates, will user have to tap update button 3 times or App Store will update users app with the latest version?

I added some code deleting some user defaults which have been slowing down my app launch time. As now my app check if the current version equals to a certain version(ex, 1.5).

If user update their app to 1.5, those user defaults will be deleted, but if user get updated to 1.7 directly, those user defaults won't be deleted.

If the latter assumption is right one, then should I work on making a func checking whether current version of the app is below a certain version?

Thanks

Answered by Claude31 in 698824022

The AppStore only shows the last version.

For the userDefaults, you should warn users about their deletion. But if you don't use them anymore, why should they care ?

What you could do as well at launch:

  • check if those entries exist in user defaults
  • if yes, read those old user defaults
  • do whatever you need of them (may be converting to a new format)
  • then save user defaults, which will delete the old ones.

When the user taps "update" they will get the latest version from the App Store.

They could (in theory) be updating to the latest version from any previous version.
You need to handle all such cases.

As you suggest, this can be a problem if you change the way User Defaults are handled, between versions.

One strategy is to examine User Defaults on app launch, and update it's format, if required.
(You can also, for example, save the app version in User Defaults, to make this process easier.)

Accepted Answer

The AppStore only shows the last version.

For the userDefaults, you should warn users about their deletion. But if you don't use them anymore, why should they care ?

What you could do as well at launch:

  • check if those entries exist in user defaults
  • if yes, read those old user defaults
  • do whatever you need of them (may be converting to a new format)
  • then save user defaults, which will delete the old ones.
if user tap update, does App Store update users app with the latest update?
 
 
Q