开始
复制一个包含安装步骤和此插件的完整 Markdown 指南的设置提示。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-in-app-review`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/in-app-review/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
bun add @capgo/capacitor-in-app-reviewbunx 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 appawait 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 的实际应用