App Rate

Contents

The AppRate plugin makes it easy to prompt the user to rate your app, either now, later, or never.

https://github.com/pushandplay/cordova-plugin-apprate

Ionic App Rate插件的安装(Installation)

ionic cordova plugin add cordova-plugin-apprate npm install @ionic-native/app-rate

Ionic App Rate插件支持的平台(Supported Platforms)

  • Android
  • BlackBerry 10
  • iOS
  • Windows

Ionic App Rate插件的用法(Usage)

import { AppRate } from '@ionic-native/app-rate';

constructor(private appRate: AppRate) { }

...
// set certain preferences
this.appRate.preferences.storeAppURL = {
  ios: '',
  android: 'market://details?id=',
  windows: 'ms-windows-store://review/?ProductId='
};

this.appRate.promptForRating(true);

// or, override the whole preferences object
this.appRate.preferences = {
  usesUntilPrompt: 3,
  storeAppURL: {
   ios: '',
   android: 'market://details?id=',
   windows: 'ms-windows-store://review/?ProductId='
  }
};

this.appRate.promptForRating(false);