App Rate
The AppRate plugin makes it easy to prompt the user to rate your app, either now, later, or never.
Requires Cordova plugin: cordova-plugin-apprate. For more info, please see the AppRate plugin docs.
https://github.com/pushandplay/cordova-plugin-apprate
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.
Installation
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-apprate
$ npm install @awesome-cordova-plugins/app-rate
$ ionic cap sync
$ ionic cordova plugin add cordova-plugin-apprate
$ npm install @awesome-cordova-plugins/app-rate
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
Supported Platforms
- Android
- BlackBerry 10
- iOS
- Windows
Usage
React
Learn more about using Ionic Native components in React
Angular
import { AppRate } from '@awesome-cordova-plugins/app-rate/ngx';
constructor(private appRate: AppRate) { }
...
// set certain preferences
this.appRate.preferences.storeAppURL = {
ios: '<app_id>',
android: 'market://details?id=<package_name>',
windows: 'ms-windows-store://review/?ProductId=<store_id>'
}
this.appRate.promptForRating(true);
// or, override the whole preferences object
this.appRate.preferences = {
usesUntilPrompt: 3,
storeAppURL: {
ios: '<app_id>',
android: 'market://details?id=<package_name>',
windows: 'ms-windows-store://review/?ProductId=<store_id>'
}
}
this.appRate.promptForRating(false);