Skip to main content

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?

Don't waste precious time on plugin issues.

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#

$ npm install cordova-plugin-apprate
$ npm install @ionic-native/app-rate
$ ionic cap sync

Supported Platforms#

  • Android
  • BlackBerry 10
  • iOS
  • Windows

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { AppRate } from '@ionic-native/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);