birdcage
birdcage

Reputation: 2676

IOS 11 Review page not opening

I was able to open review page in app store with the code below with IOS 10 but not anymore in IOS 11.

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=xxxxxxxx&pageNumber=0&sortOrdering=2&mt=8"]]];

How to do it in IOS 11?

Upvotes: 2

Views: 530

Answers (1)

Koby Douek
Koby Douek

Reputation: 16693

You method of opening the review page with a URL is deprecated. From iOS version 10.3 and above, Apple instructed developers to use the SKStore​Review​Controller:

SKStore​Review​Controller: An object that controls the process of requesting App Store ratings and reviews from users.

Objective-C Usage code:

// Import the store kit 
@import StoreKit

// Use the controller to open the review URL
[SKStoreReviewController requestReview];

Upvotes: 3

Related Questions