Review.request
Functional API
requestReviewYou can use the same feature with it as well.
Feature description
Request a mini app review from users. Toss app Android/iOS 5.253.0 It can be used on the above.
Before calling Review.request.isSupported()you can check whether it is supported. If you call it on an unsupported version, UNSUPPORTED_APP_VERSION an error occurs.
Type
Review.request(): Promise<void>;Params
None.
Response
None.
Error
The error code is the error.code value.
Code
Description
UNSUPPORTED_APP_VERSION
If the running version of the Toss app doesn't support this feature, it occurs immediately upon call. Review.request.isSupported()Check in advance with error.messageand, if it occurs, show the user the (update guidance message).
Example code
import { Review } from "@apps-in-toss/web-framework";
try {
await Review.request();
} catch (error) {
console.error(error);
}Was this helpful?