引言
- 项目需求获得大量评分,评分高评论多,App排名高
痛点
- 购买评论刷排名有风险,苹果有审核机制
- 老版本
UIApplication.shared.open(url, options: options, completionHandler: nil)
跳出当前App,进入AppStore评价则会打断用户操作,而且较为繁琐,成效低
解决方案
- 观看
WWDC
发现新出的SKStoreReviewController
刚好能满足项目需求
class func requestReview()
Use the requestReview() method to indicate when it makes sense within the logic of your app to ask the user for ratings and reviews within your app.
Tells StoreKit to ask the user to rate or review your app, if appropriate.
- 如果合适的话
StoreKit
就会要求用户对你的App进行评分 - 不用再去管
URL
只需要调用SKStoreReviewController.requestReview()
这句代码就完成所有的需求
注意
Although you should call this method when it makes sense in the user experience flow of your app, the actual display of a rating/review request view is governed by App Store policy. Because this method may or may not present an alert, it's not appropriate to call it in response to a button tap or other user action.
- 尽管你应该调用这个方法来提升用户操作体验,但是评分界面到底显不显示是取决于苹果的策略,开发者无法控制,不要在按钮的点击里面放入这句代码
Note
When you call this method while your app is still in development mode, a rating/review request view is always displayed so that you can test the user interface and experience. However, this method has no effect when you call it in an app that you distribute using TestFlight.
-
当你在开发模式下你调用这句代码,评分界面就会显示,但是在发布模式下这个出不出现就依赖于苹果的策略了
-
一年苹果只允许弹出三次,所以最好在用户完成什么操作多少次属于比较忠实的用户才调用这句代码
网友评论