TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
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.
[[AWVersionAgent sharedAgent] checkNewVersionForApp:@"your-app-id"];
in application:didFinishLaunchingWithOptions:
to check new version in background.[[AWVersionAgent sharedAgent] upgradeAppWithNotification:notification];
in application:didReceiveLocalNotification:
to response local notification.[[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];
}
AWVersionAgent is available under the MIT license.