There are many ways to score app integration, and the author summarizes the following three ways
-
1. Jump to appStore reviews
-
2. Display the details page of ITUNS inside the app to realize the app comments
-
3. Use the new iOS 10.3 feature for in-app scoring
Implementation characteristics
Three ways can realize the evaluation function, and each has its own characteristics:
1. Jump to AppStore comments is a method that has been used since iOS 2.0. Apple also recommends app jump to realize evaluation function, where users can directly jump to the comment page of the corresponding APP for scoring and content evaluation. The effect is as follows:
2. The app details page displayed, using the SKStoreProductViewController proxy approach, is iOS 6.0 after open API, is because direct jump ituns product page, so you need to user manual to find evaluation.
3. Since iOS 10.3, Apple has disclosed the API of StoreKit, which allows users to directly call methods in the app to achieve the evaluation effect. However, there are only scores and no specific evaluation content entry, which is obviously still a barrier to collecting user feedback.
Implementation method
The following is a brief introduction to the implementation method
Go to appStore review page
NSString * nsStringToOpen = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/app/id%@?action=write-review"The @"APPID"]; Replaced with the corresponding APPID [[UIApplication sharedApplication] openURL: [NSURL URLWithString: nsStringToOpen]].Copy the code
Ii. App internal display product page evaluation
#import
2. Follow SKStoreProductViewControllerDelegate
3. Introduction method
SKStoreProductViewController *storeProductViewContorller = [[SKStoreProductViewController alloc] init]; storeProductViewContorller.delegate = self; / / load the App Store view [storeProductViewContorller loadProductWithParameters: @{SKStoreProductParameterITunesItemIdentifier : @"APPID"} completionBlock:^(BOOL result, NSError *error) {
if(error) {
} else{/ / modal pop-up appstore [self presentViewController: storeProductViewContorller animated: YES completion: ^ {}]. }}];Copy the code
4. Implement SKStoreProductViewControllerDelegate proxy method
(void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController {
[self dismissViewControllerAnimated:YES completion:^{
}];
}
Copy the code
Iii. In-app star rating
#import
- Implementation method
[SKStoreReviewController requestReview];
Copy the code
The end