Jovem
Jovem

Reputation: 185

Check Update Available App Store

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

Upvotes: 11

Views: 9424

Answers (5)

nebillo
nebillo

Reputation: 1247

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.

Upvotes: 62

Anuran Barman
Anuran Barman

Reputation: 1676

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

Upvotes: 0

emotality
emotality

Reputation: 13035

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;

Upvotes: 1

sbonami
sbonami

Reputation: 1922

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

Upvotes: 2

Simon Lee
Simon Lee

Reputation: 22334

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.

Upvotes: 0

Related Questions