ata

ATAppUpdater

Checks if there is a newer version of your app in the AppStore and alerts the user to update.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

254

Maintenance

Last Commit

6mos ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

ATAppUpdater 2.0

Checks if there is a newer version of your app in the AppStore and alerts the user to update.

Features

  • One line of code
  • Milliseconds response
  • Thread-safe
  • Shows version number in alert
  • Opens app in AppStore from alert
  • Choose not to update now or force user to update
  • Localization supported
  • Delegate methods

Examples

One line:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   [[ATAppUpdater sharedUpdater] showUpdateWithForce];
   return YES;
}

ATAppUpdater1

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   [[ATAppUpdater sharedUpdater] showUpdateWithConfirmation];
   return YES;
}

ATAppUpdater2


Custom titles + localization:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   ATAppUpdater *updater = [ATAppUpdater sharedUpdater];
   [updater setAlertTitle:NSLocalizedString(@"Nuwe Weergawe", @"Alert Title")];
   [updater setAlertMessage:NSLocalizedString(@"Weergawe %@ is beskikbaar op die AppStore.", @"Alert Message")];
   [updater setAlertUpdateButtonTitle:@"Opgradeer"];
   [updater setAlertCancelButtonTitle:@"Nie nou nie"];
   [updater setDelegate:self]; // Optional
   [updater showUpdateWithConfirmation];
   return YES;
}

ATAppUpdater3


Delegate methods:

- (void)appUpdaterDidShowUpdateDialog;
- (void)appUpdaterUserDidLaunchAppStore;
- (void)appUpdaterUserDidCancel;

Installation

Manual:

  • Copy ATAppUpdater folder into your project
  • Link SystemConfiguration.framework
  • #import "ATAppUpdater.h" in the required class
  • Add the <ATAppUpdaterDelegate> protocol if needed

CocoaPods:

  • Add to podfile: pod 'ATAppUpdater'
  • #import "ATAppUpdater.h" in the required class
  • Add the <ATAppUpdaterDelegate> protocol if needed

License

ATAppUpdater is released under the MIT license. See LICENSE for details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100