srg

SRGVersionUpdater

SRGVersionUpdater can show alert view about app update infomation and force users to download new version app.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

47

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

2

License

MIT

Categories

Readme

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="}
keydefine
required_versionThe version string of latest client application.
typeThe type of update, "force" or "optional".
update_urlThe 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

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