无需打开appStore即可对应用内星标评分 [英] In-App-Rating with stars, without opening appStore

查看:152
本文介绍了无需打开appStore即可对应用内星标评分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望人们使用应用本身内部的星标来对我的应用进行评分,因此没有SKStoreProductView(或其他).因此,如果他们点击评分",那么就会有一个额外的视图,在这里他们可以对我的应用进行1到5星的评分.我该如何实现?

非常感谢

iOS 10.3 +

之后的

解决方案

现在可能

SKStoreReviewController允许用户通过对话框直接从应用程序内部为应用程序评分.唯一的缺点是您只能请求StoreKit显示对话框,但不能确定是否会显示该对话框.

快速

import StoreKit

func someFunction() {
   SKStoreReviewController.requestReview()
}

Objective-C

#import <StoreKit/StoreKit.h>

-(void)someFunction {
    [SKStoreReviewController requestReview];
}

SKStoreReviewController不起作用

仅在从应用商店下载应用后启用.

在开发甚至发布版本中,它都是灰色的.

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?

thanks a lot

解决方案

Possible Now after iOS 10.3+

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.

Swift

import StoreKit

func someFunction() {
   SKStoreReviewController.requestReview()
}

Objective-C

#import <StoreKit/StoreKit.h>

-(void)someFunction {
    [SKStoreReviewController requestReview];
}

SKStoreReviewController not working

It is only enabled after the app is downloaded from the app store.

During development, or even release build, it is grayed out.

这篇关于无需打开appStore即可对应用内星标评分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆