@capawesome/capacitor-app-review¶
Capacitor plugin that allows users to submit app store reviews and ratings.
Newsletter¶
Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our Capawesome Newsletter.
Compatibility¶
| Plugin Version | Capacitor Version | Status |
|---|---|---|
| 8.x.x | >=8.x.x | Active support |
Installation¶
You can use our AI-Assisted Setup to install the plugin. Add the Capawesome Skills to your AI tool using the following command:
Then use the following prompt:
Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-app-review` plugin in my project.
If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:
Android¶
Variables¶
If needed, you can define the following project variable in your app’s variables.gradle file to change the default version of the dependency:
$androidPlayReviewVersionversion ofcom.google.android.play:review(default:2.0.2)
This can be useful if you encounter dependency conflicts with other plugins in your project.
Configuration¶
No configuration required for this plugin.
Usage¶
import { AppReview } from '@capawesome/capacitor-app-review';
const openAppStore = async () => {
await AppReview.openAppStore();
};
const requestReview = async () => {
await AppReview.requestReview();
};
API¶
openAppStore(...)¶
Open the App Store page for the current app and, if possible, open the dialog to leave a review.
Only available on Android and iOS.
| Param | Type |
|---|---|
options |
OpenAppStoreOptions |
Since: 6.0.0
requestReview()¶
Request an in-app review.
Attention: On iOS, review requests are limited to 3 requests per year.
Only available on Android and iOS (14+).
Since: 6.0.0
Interfaces¶
OpenAppStoreOptions¶
| Prop | Type | Description | Since |
|---|---|---|---|
appId |
string |
The app ID of the app to open in the App Store. On iOS, this is the Apple ID of your app (e.g. 123456789). You can find the ID in the URL of your app store entry (e.g. https://apps.apple.com/app/id123456789). Only available on iOS. |
6.0.1 |
Testing¶
In order to test the In-App Review functionality, you need to follow the instructions provided by the respective platform:
Changelog¶
See CHANGELOG.md.
License¶
See LICENSE.