Check Update Available App Store

隐身守侯 提交于 2019-12-29 03:40:22

问题


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


回答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;



回答2:


Your can easy asking the app store to return your application info: http://itunes.apple.com/lookup?id=441252681

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

the official documentation: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html




回答3:


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




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/6329396/check-update-available-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!