Check if my app has a new version on AppStore

Here is a simple code snippet that lets you know if the current version is different -(BOOL) needsUpdate{ NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString* appID = infoDictionary[@”CFBundleIdentifier”]; NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@”http://itunes.apple.com/lookup?bundleId=%@”, appID]]; NSData* data = [NSData dataWithContentsOfURL:url]; NSDictionary* lookup = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; if ([lookup[@”resultCount”] integerValue] == 1){ NSString* appStoreVersion = … Read more

App store link for “rate/review this app”

For versions lower than iOS 7 use the old one: itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOUR_APP_ID This works on my end (Xcode 5 – iOS 7 – Device!): itms-apps://itunes.apple.com/app/idYOUR_APP_ID For iOS 8 or later: itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=YOUR_APP_ID&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software Code snippet (you can just copy & paste it): #define YOUR_APP_STORE_ID 545174222 //Change this one to your ID static NSString *const iOS7AppStoreURLFormat = @”itms-apps://itunes.apple.com/app/id%d”; static … Read more

Max size of an iOS application

4GB’s is the maximum size your iOS app can be. As of January 26, 2017 App Size for iOS (& tvOS) only Your app’s total uncompressed size must be less than 4GB. Each Mach-O executable file (for example, app_name.app/app_name) must not exceed these limits: For apps whose MinimumOSVersion is less than 7.0: maximum of 80 … Read more

How to link to apps on the app store

Edited on 2016-02-02 Starting from iOS 6 SKStoreProductViewController class was introduced. You can link an app without leaving your app. Code snippet in Swift 3.x/2.x and Objective-C is here. A SKStoreProductViewController object presents a store that allows the user to purchase other media from the App Store. For example, your app might display the store … Read more