Simple way to check Appstore version
- Use iTunes Search API
- Use AFNetworking 2 to do network request. I use Cocoapods so you have to run
pod install
first
FTGAppstoreVersionChecker *checker = [FTGAppstoreVersionChecker checker];
self.checker.appStoreID = @"698488137";
self.checker.applicationBundleID = @"com.dbs.homeconnect";
self.checker.currentApplicationVersion = @"1.2";
[self.checker checkForNewVersionOnAppStoreWithNewerBlock:^(NSString *appstoreVersion) {
NSLog(@"There is newer version %@ on Appstore. Check it out", appstoreVersion);
} failure:^(NSError *error) {
NSLog(@"Error %@", error);
}];
This project is released under the MIT license. See LICENSE.md.
Contact me onmyway133