はじめに
Capacitorのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーする。
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
「requestReview」セクションのタイトルユーザーからアプリ内レビューの要求
このメソッドは、プラットフォームによって提供されるネイティブのアプリ内レビューダイアログをトリガーします。 iOSでは、SKStoreReviewControllerが使用されます。Androidでは、Play In-App Review APIが使用されます。
重要な注意事項:
- レビューダイアログは、毎回このメソッドを呼び出すたびに表示されない可能性があります。 AppleとGoogleは、提示できる頻度を制限するガイドラインを設けています。
- ユーザーがレビューの提示を確認する保証はありません。
- ダイアログが表示されなかった場合でも、このメソッドは正常に解決されます。
- ユーザーがアクションを実行したときに呼び出すのではなく、自然なポイントでアプリのユーザーフローの中で呼び出してください。
import { CapgoInAppReview } from '@capgo/capacitor-in-app-review';
// Request a review at an appropriate moment in your appawait CapgoInAppReview.requestReview();真実の源
真実の源このページはプラグインから生成されています。 src/definitions.ts. upstream の 公開 API が変更された場合、再度 Sync を実行してください。