SRGVersionUpdater can show alert view about app update infomation and force users to download new version app.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
Example
SRGVersionUpdater.bundle
.gitignore
LICENSE
README.md
SRGVersionUpdater.podspec

README.md

SRGVersionUpdater

Version License Platform

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