AWVersionAgent

by appwilldev

appwilldev / AWVersionAgent

Check and notify user that new version is available from Local Notification.

128 Stars 21 Forks Last release: over 6 years ago (0.0.4) MIT License 18 Commits 7 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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:

  1. Add
    [[AWVersionAgent sharedAgent] checkNewVersionForApp:@"your-app-id"];
    in
    application:didFinishLaunchingWithOptions:
    to check new version in background.
  2. Add
    [[AWVersionAgent sharedAgent] upgradeAppWithNotification:notification];
    in
    application:didReceiveLocalNotification:
    to response local notification.
  3. 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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.