Check Update Available App Store

后端 未结 5 2074
别那么骄傲
别那么骄傲 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;
    

提交回复
热议问题