Review: Yes2SDK.review

← Back to overview

In-game rating / feedback prompt. Ask the platform to show its native "rate this game" dialog at a good moment (after a win, a level complete, a long session).

Yandex only. On every other platform canReviewAsync() reports canReview: false (reason "FEATURE_NOT_SUPPORTED") and isSupported() returns false, so the calls are safe no-ops. requestReviewAsync() checks eligibility internally. The platform decides whether the prompt is actually shown (it won't re-prompt a player who has already rated), so a feedbackSent: false result is normal and not an error.


Methods (Core)

SignatureDescription
canReviewAsync(): Promise<ReviewEligibility>Whether the rating prompt may currently be shown.
requestReviewAsync(): Promise<ReviewResult>Request the rating prompt. Eligibility is checked internally; resolves with whether feedback was sent.
isSupported(): booleanWhether a rating prompt is available.

Types: ReviewEligibility = { canReview: boolean; reason?: string }; ReviewResult = { feedbackSent: boolean }.


Platform support

MethodPokiGameDistributionCrazyGamesYandexYouTube
canReviewAsyncNone¹None¹None¹ReadyNone¹
requestReviewAsyncNone¹None¹None¹ReadyNone¹
isSupportedNoneNoneNoneReadyNone

¹ Returns { canReview: false, reason: "FEATURE_NOT_SUPPORTED" } / a no-op result. Only Yandex (ysdk.feedback) exposes a rating prompt.


Usage

if (Yes2SDK.review.isSupported()) {
    const { canReview } = await Yes2SDK.review.canReviewAsync();
    if (canReview) {
        const { feedbackSent } = await Yes2SDK.review.requestReviewAsync();
        // feedbackSent === false is normal (e.g. player already rated)
    }
}

Defold (Lua)

SignatureDescription
yes2sdk.review_can_review(callback)callback(self, success, eligibility_json): {"canReview":bool,"reason":"..."}.
yes2sdk.review_request_review(callback)callback(self, success, result_json): {"feedbackSent":bool} (false is normal).
yes2sdk.review_is_supported()Returns true where the rating prompt exists (Yandex today).
Pitch your game