I tried to show app rating screen in the android platform in ionic. Not working Ionic Native plugins.
import { ViewController, Platform } from 'ionic-angular';
import { AppRate } from '@ionic-native/app-rate';
export class Popover {
constructor(
private appRate: AppRate,
public platform: Platform) { }
rate() {
this.platform.ready().then(() => {
this.appRate.preferences = {
usesUntilPrompt: 2,
storeAppURL: {
ios: 'id12233',
android: 'market://details?id=<com.sample.activity>',
}
};
this.appRate.promptForRating(true);
});
}
}
check if your install app rate plugin and try the below link enter link description here
$ ionic cordova plugin add cordova-plugin-apprate
$ npm install --save @ionic-native/app-rate