11

Anyone known if exist some way to check if exist one update available on App Store??

I want notify to user the new updates on my application begins...

Thanks

Simon Lee
  • 22,304
  • 4
  • 41
  • 45
Jovem
  • 185
  • 2
  • 9

5 Answers5

62

You can easily ask the App Store to return your application info:

e.g. https://itunes.apple.com/lookup?id=441252681

In the json response, the "info" field is what you're looking for, and you get it updated for free!

See the official documentation here.

shim
  • 9,289
  • 12
  • 69
  • 108
nebillo
  • 1,257
  • 10
  • 21
  • 3
    Apparently the JSON structure has changed, since it's now in the "version" field. – KPM Nov 28 '12 at 03:51
  • you can find the ID of your app in itunes connect. Login, select app and locate the "apple id" row at the bottom of the page. – nebillo Sep 05 '14 at 09:06
  • Unfortunately your JSON appears not to be available while the app is in development. Also, this is a brittle solution, if Apple changes it mind on the format. I actually prefer (and implemented) the accepted answer. But I'm obviously alone :-) – GilesDMiddleton May 16 '15 at 13:54
2

I currently use a library available on Binpress that does the checking for you. As of this post the library is free.

http://www.binpress.com/c/615/6592

You could also use your own notification message when you push an update rather than using an automated check (available on Binpress and again also free as of this post)

http://www.binpress.com/c/662/6592

NOTE: I am in no way related to or receiving payment/compensation from the Binpress OP

sbonami
  • 1,892
  • 17
  • 33
1

Just use ATAppUpdater, it is 1 line, thread-safe and fast. It also have delegate methods if you would like to track user action. Here is an example:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[ATAppUpdater sharedUpdater] showUpdateWithConfirmation]; // 1 line of code
    /////////////////////// OR ///////////////////////
    [[ATAppUpdater sharedUpdater] showUpdateWithForce]; // 1 line of code

   return YES;
}

Delegate methods:

- (void)appUpdaterDidShowUpdateDialog;
- (void)appUpdaterUserDidLaunchAppStore;
- (void)appUpdaterUserDidCancel;
emotality
  • 12,795
  • 4
  • 39
  • 60
0

You can use this library from Github to prompt user if update is available. It's written in swift and has support for 4.2. It has many rules to check and can check with time interval. I think this is what you need

Siren

Anuran Barman
  • 1,556
  • 2
  • 16
  • 31
0

Well YOU know when you have a new update out so you will need to call something to check. I used to have a JSON file hosted which returned a response status showing version number of latest live version. My app would check this URL and see if a new version was available.

Simon Lee
  • 22,304
  • 4
  • 41
  • 45
  • yes, that way is possible, but Don't exist some API call for that? Like the request InAppPurchase Product on In App Purchases... – Jovem Jun 13 '11 at 11:29
  • I thought this was not allowed by Apple's policy. It might just be "automatic updating" (like Sparkle) but I thought they also meant "no checking for updates" too since they want everything to be updated through their App Store apps. Might want to look into this. – Joshua Nozzi Jun 13 '11 at 15:44
  • Knowing that an update is available and directing people to the App Store is perfectly fine. Stopping the use of your app if the user isn't using a certain version, when due to technical or operational reasons, is perfectly fine. Forcing arbitrary updates without due need is not allowed. – Simon Lee Jun 14 '11 at 07:49
  • This answer has been posted like some millennia ago but I think this should be the way to do it. People should also explain the down votes. – yoninja Aug 08 '18 at 10:23