应用内星级评分,无需打开应用商店 [英] In-App-Rating with stars, without opening appStore
问题描述
我希望人们用应用程序本身内的星星来评价我的应用程序,所以没有 SKStoreProductView(或其他任何东西).因此,如果他们点击评分",则会有一个额外的视图,他们可以在其中给我的应用评分 1 到 5 颗星.我该如何实施?
I want people to rate my app with stars inside the app itself, so without a SKStoreProductView (or whatever). So if they tap "rate" then there is an extra view where they can rate my app with 1 to 5 stars. How do i implement that?
非常感谢
推荐答案
现在可能 iOS 10.3+
SKStoreReviewController 允许用户通过对话框直接从应用程序内评价应用程序.唯一的缺点是您只能请求 StoreKit 显示对话框,但不能确定是否会显示.
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
迅捷
import StoreKit
func someFunction() {
SKStoreReviewController.requestReview()
}
目标 C
#import <StoreKit/StoreKit.h>
-(void)someFunction {
[SKStoreReviewController requestReview];
}
SKStoreReviewController 不工作
从应用商店下载应用后才启用.
It is only enabled after the app is downloaded from the app store.
在开发过程中,甚至在发布版本中,它都是灰色的.
During development, or even release build, it is grayed out.
这篇关于应用内星级评分,无需打开应用商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!