A simple and easy-to-use update manager which checks if there is any new version available to the AppStore
To run the example project, clone the repo, and run pod install
from the Example directory first.
DTApplicationUpdateManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DTApplicationUpdateManager'
You can call, for example:
[[DTApplicationUpdateManager sharedInstance] checkForNewAppVersionWithReminderRoutineType:DTApplicationUpdateRoutineTypeEveryWeek];
from didFinishLaunchingWithOptions
or applicationWillEnterForeground
or applicationDidBecomeActive
in AppDelegate
etc, in order to check the new version's availability.
Remember to set the delegate.
The DTApplicationUpdateRoutineType
is used for the reminder. If user ignores to the new version update message, the delegate method will be called after a certain amount of time which depends on the DTApplicationUpdateRoutineType
. Remember that DTApplicationUpdateManager will not automatically remind its delegate about the new version until its checkForNewAppVersionWithReminderRoutineType
method is called.
Pull request are welcomed!
DTApplicationUpdateManager is available under the MIT license. See the LICENSE file for more info.