In-App-Rating with stars, without opening appStore

2019-08-08 04:45发布

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

2条回答
趁早两清
2楼-- · 2019-08-08 04:47

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.

查看更多
你好瞎i
3楼-- · 2019-08-08 05:08

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

查看更多
登录 后发表回答