SRGVersionUpdater 0.0.3

SRGVersionUpdater 0.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2015

Maintained by kazu0620.



 
Depends on:
BlocksKit>= 0
AFNetworking>= 0
 

  • By
  • Kazuhiro Sakamoto

Though you improved wonderfully your app, some users doesn't upgrade your app and continue to use old version. That's tragedy. SRGVersionUpdater can solve this problem. SRGVersionUpdater can show alert view about update infomation and force users to launch App Store and download new version app.

The installation is very simple and easy. On client side all you need is only to write a code in 3 lines. And Even if you don't have knowledge in a server side programming, you can very easily setup if you have account of Dropbox, Google Drive or other hosting services.

Screenshot

Usage

1. Upload a JSON file

Upload a JSON file below. It is OK to upload to public folder of Dropbox, GoogleDrive, or other free hosting services. Example JSON file

{"required_version":"2.0.0","type":"force","update_url":"https://itunes.apple.com/jp/app/idxxxxxxxxxx?mt="}
key define
required_version The version string of latest client application.
type The type of update, "force" or "optional".
update_url The App store URL of your app.

How to Host files with GoogleDrive

How to Host files with dropbox

2. Install SRGVersionUpdater

Install SRGVersionUpdater to your project with CocoaPods by adding the following to your Podfile:

pod 'SRGVersionUpdater', "0.0.3"

At last, Open up the AppDelegate.m and edit application:didFinishLaunchingWithOptions: to be like so:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    SRGVersionUpdater *versionUpdater = [SRGVersionUpdater new];
    versionUpdater.endPointUrl = @"http://xxxxxxxxxxxxx";
    [versionUpdater executeVersionCheck];

    return YES;
}

Input URL of the JSON file uploaded by previous step in endPointUrl.

Notice:

There are Bandwidth Limits in Dropbox. If your app have huge number of access per day, it is better to change account plan, or use other hosting services.

Dropbox Help Center : Why were my links banned?

License

Licensed under the MIT License