Checks if there is a newer version of your app in the AppStore and alerts the user to update.
- One line of code
- Milliseconds response
- Shows version number in alert
- Opens app in AppStore from alert
- Choose not to update now or force user to update
- Thread-safe
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[ATAppUpdater sharedUpdater] forceOpenNewAppVersion:NO];
return YES;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[ATAppUpdater sharedUpdater] forceOpenNewAppVersion:YES];
return YES;
}
- Copy
ATAppUpdater
folder in your project #import "ATAppUpdater.h"
in the required class
- Reachability: https://github.com/tonymillion/Reachability