Check Update Available App Store

后端 未结 5 2048
别那么骄傲
别那么骄傲 2020-12-14 04:56

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

相关标签:
5条回答
  • 2020-12-14 05:01

    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;
    
    0 讨论(0)
  • 2020-12-14 05:01

    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

    0 讨论(0)
  • 2020-12-14 05:05

    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

    0 讨论(0)
  • 2020-12-14 05:18

    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.

    0 讨论(0)
  • 2020-12-14 05:24

    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.

    0 讨论(0)
提交回复
热议问题