user6500031
user6500031

Reputation:

Cannot open Rating page in App Store from my App in iOS 10

I am trying to open my registered app's Rating and Review Page directly from my app. The App isn't live yet, but I've added it in the itunes account and got the Apple ID. Code which I've tried is

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

where XXXXXXXXXX is my apple ID. Above code opens app store with an error message: Your request produced an error. [newNullResponse].

Upvotes: 0

Views: 1282

Answers (3)

Umair
Umair

Reputation: 1253

You cannot take user directly to reviews tab on the itunes page as there are no more tabs there now. If you still want to open write a review page, use this

https://itunes.apple.com/app/idXXXXXXXXX?mt=8&action=write-review 

Upvotes: 2

Jochen Holzer
Jochen Holzer

Reputation: 1736

Objective-C Code:

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

Upvotes: -1

Catalina T.
Catalina T.

Reputation: 3494

The URL to your app would not be available until your app is in the store.

For iOS 10.3 upwards, Apple Provides a way to present a native app rating popup in your app, that sends the ratings straight to the store. It is their recommended way of requesting ratings.

To make it show up, you need to call this, in Swift:

if #available(iOS 10.3, *) {
    SKStoreReviewController.requestReview()
}

If you still want to use the URL, the following will redirect you to the app in itunes https://itunes.apple.com/en/app/idxxxxxxxxx where the xxxxxxxxx is the App Id from itunes connect

You might also want to check this answer: ITunes review URL and iOS 7 (ask user to rate our app) AppStore show a blank page

Upvotes: 2

Related Questions