iOS应用评分

引言

  • 项目需求获得大量评分,评分高评论多,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.

  • 当你在开发模式下你调用这句代码,评分界面就会显示,但是在发布模式下这个出不出现就依赖于苹果的策略了

  • 一年苹果只允许弹出三次,所以最好在用户完成什么操作多少次属于比较忠实的用户才调用这句代码

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容