跳过内容

开始

GitHub
Terminal window
bun add @capgo/capacitor-in-app-review
bunx cap sync

导入

导入
import { CapgoInAppReview } from '@capgo/capacitor-in-app-review';

API概述

API概述

requestReview

__CAPGO_KEEP_0__

从用户处请求应用内评分

本方法触发由平台提供的原生应用内评分对话框。 在iOS中,它使用SKStoreReviewController。 在Android中,它使用Play In-App Review API。

重要注意事项:

  • 本方法每次调用时可能不会显示评分对话框。 苹果和谷歌都有指导方针,限制了提示的频率。
  • There is no guarantee that the user will see the review prompt.
  • The method resolves successfully even if the dialog was not shown.
  • Do not call this in response to a user action like a button tap. Instead, call it at natural points in your app’s user flow.
import { CapgoInAppReview } from '@capgo/capacitor-in-app-review';
// Request a review at an appropriate moment in your app
await CapgoInAppReview.requestReview();

真实数据来源

源数据

本页面是由插件生成的 src/definitions.ts当公共API上游发生变化时,请重新同步。

继续从开始

继续从开始

如果您正在使用 开始 To plan store approval and distribution, connect it with 使用 @capgo/capacitor-in-app-review 对于使用 @capgo/capacitor-in-app-review 的原生功能 @capgo/capacitor-in-app-review 关于 @capgo/capacitor-in-app-review 的实现细节 @capgo/capacitor-native-market 关于 @capgo/capacitor-native-market 的实现细节 使用 @capgo/capacitor-native-market 对于使用 @capgo/capacitor-native-market 的原生功能 Capacitor OTA Updates: App Store Approval Guide 关于 Capacitor OTA Updates: App Store Approval Guide 的实际应用