Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

loon3y

macrumors 65816
Original poster
Oct 21, 2011
1,235
126
if there is an update i want the user to see an alert when the app is started up as in alert, and when an update is approved by apple and on the store.


based off what do i call the alert/notification? like for example bundle Version? or what not?
 
Last edited:
if there is an update i want the user to see an alert when the app is started up as in alert, and when an update is approved by apple and on the store.


based off what do i call the alert/notification? like for example bundle Version? or what not?

Determining what the current version is from your app bundle is easy enough. You need a way to check what the *latest* version of your app is.

An easy way to do that would be to put a simple file at a URL somewhere, say "latestVersion.txt", which you will update after a new version of your app is approved on the app store.

Each time your app is started, it should retrieve this file (using NSURLConnection) and compare the current version to what it sees in the file. If the version number in the file is higher, put up an Alert directing users to the app store to download the latest version.

Be sure to just fail silently if there is a problem doing the check - which will happen, for example, if there's no internet connection.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.