Reputation: 2676
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
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 SKStoreReviewController
:
SKStoreReviewController
: 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