Review: Yes2SDK.review
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()reportscanReview: false(reason"FEATURE_NOT_SUPPORTED") andisSupported()returnsfalse, 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 afeedbackSent: falseresult is normal and not an error.
Methods (Core)
| Signature | Description |
|---|---|
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(): boolean | Whether a rating prompt is available. |
Types: ReviewEligibility = { canReview: boolean; reason?: string }; ReviewResult = { feedbackSent: boolean }.
Platform support
| Method | Poki | GameDistribution | CrazyGames | Yandex | YouTube |
|---|---|---|---|---|---|
canReviewAsync | None¹ | None¹ | None¹ | Ready | None¹ |
requestReviewAsync | None¹ | None¹ | None¹ | Ready | None¹ |
isSupported | None | None | None | Ready | None |
¹ 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)
| Signature | Description |
|---|---|
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). |