In-App-Rating with stars, without opening appStore

二次信任 提交于 2019-12-11 07:57:14

问题


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


回答1:


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.




回答2:


EDIT:

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.

import StoreKit

func someFunction() {
   SKStoreReviewController.requestReview()
}

Was not possible until recent iOS, there was no API.

EDIT: What you see in Blek is a GKGameCenterViewController with the GKGameCenterViewControllerStateAchievements



来源:https://stackoverflow.com/questions/25119554/in-app-rating-with-stars-without-opening-appstore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!