Opening the App Store for evaluation from my application

I was wondering if it is possible to connect my user directly to the overview section of my application in the application store from my application?

I do not want this to open in Safari, I want him to immediately open the App Store application on the device and transfer them to the overview page.

I tried the following:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=437688779&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software"]]; 

However, the click seems to open the iTunes application, not the application, and then simply displays the message "Cannot connect to the repository. Unable to establish a secure connection."

Any ideas?

+7
source share
6 answers

As you can see from this blog:

 - (IBAction)gotoReviews:(id)sender { NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa"; str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str]; str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str]; // Here is the app id from itunesconnect str = [NSString stringWithFormat:@"%@yourAppIDHere", str]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; } 
+18
source

The problem seems to be worth mentioning in iOS 7.0, as described here . You can see how Appirator viewed the issue in its source here .

Basically, you need to handle 7.0 users differently: (the first line matches the decision made, the added lines are on the same line.)

 NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=yourAppIDHere"; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { str = @"itms-apps://itunes.apple.com/app/idyourAppIDHere"; } [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; 

August 19, 2015 Patch

The above URLs do not work for iOS 8.0. Updated code for all versions of iOS will be:

 NSString *str; float ver = [[[UIDevice currentDevice] systemVersion] floatValue]; if (ver >= 7.0 && ver < 7.1) { str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@",appID]; } else if (ver >= 8.0) { str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software",appID]; } else { str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",appID]; } [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; 

Source: Appirator


November 14, 2017 Patch

From iOS 10.3, we can request a review using the SKStoreReviewController , which actually opens a neat little popup in your application, rather than switching from your application:

 if (@available(iOS 10.3, *)) { [SKStoreReviewController requestReview]; return; } 
+22
source

You need the itms:// link, and here is a convenient place to create it. Make sure you change the protocol from http(s): to itms: (or itms-apps: which seems new).

+4
source

You can just use the iRate class, which works well for me.

+1
source

Use this: - @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@";

+1
source

use it, it will also help you.

  NSString * fdAppUrl=@ "itms://itunes.apple.com/us/app/apple-store/id1137341185?mt=8"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:fdAppUrl]]; 

http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store

0
source

All Articles