Update Push Notification/Alert Question

Discussion in 'iOS Programming' started by loon3y, Oct 29, 2012.

  1. loon3y, Oct 29, 2012
    Last edited: Oct 29, 2012

    loon3y macrumors 65816


    Oct 21, 2011
    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?
  2. Reason077 macrumors 68020


    Aug 14, 2007
    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.

Share This Page