开始使用
复制一个包含安装步骤和本插件的完整 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 syncimport { CapgoInAppReview } from '@capgo/capacitor-in-app-review';API 介绍
标题:API 介绍requestReview
标题:requestReview请求用户在应用内进行评论。
此方法触发由平台提供的原生应用内评论对话框。 在 iOS 中,它使用 SKStoreReviewController。 在 Android 中,它使用 Play In-App Review API。
重要注意事项:
- 评论对话框可能不会每次调用此方法时都显示。 苹果和谷歌都有指导方针,限制了提示可以出现的频率。 没有保证用户会看到评论提示。 即使对话框没有显示,方法也会成功解决。 不要在用户操作,如按钮点击的响应中调用此方法。 相反,在应用的用户流程自然的点调用它。
- 复制到剪贴板
- 真实来源
- __CAPGO_KEEP_0__ 介绍
import { CapgoInAppReview } from '@capgo/capacitor-in-app-review';
// Request a review at an appropriate moment in your appawait CapgoInAppReview.requestReview();标题:requestReview
真实来源本页面由插件生成 src/definitions.ts当公共API上游发生变化时,请重新同步。