AWVersionAgent
There is so many update checker using UIAlertView
to notify user to upgrade your app, but the alert will stop user's action. AWVersionAgent
will check new version in background and notify user that new version is available from Local Notification.
Usage:
- Add
[[AWVersionAgent sharedAgent] checkNewVersionForApp:@"your-app-id"];
inapplication:didFinishLaunchingWithOptions:
to check new version in background. - Add
[[AWVersionAgent sharedAgent] upgradeAppWithNotification:notification];
inapplication:didReceiveLocalNotification:
to response local notification. - You can enable debug mode by
[[AWVersionAgent sharedAgent] setDebug:YES];
.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self.window makeKeyAndVisible];
[[AWVersionAgent sharedAgent] checkNewVersion];
return YES;
}
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
[[AWVersionAgent sharedAgent] upgradeAppWithNotification:notification];
}
License
AWVersionAgent is available under the MIT license.