Reputation: 87
I tried to show app rating screen in the android platform in ionic, but before the rating popup there's another popup.
Any idea where this popup come from? image1
When I tapped on left null button/text it shown my apps rating image2
Can I remove the first pop up?
Here's my AppRate code
constructor(
private appRate: AppRate,
public lgm: LoginModelProvider,
public navCtrl: NavController,
public navParams: NavParams,
public pf:GenFunctionProvider,
public http: Http,
public storage: Storage,
private theInAppBrowser: InAppBrowser,
private alertCtrl: AlertController
) {
this.banner = [];
this.bannerPath = "";
this.biller = [];
appRate.preferences = {
displayAppName: 'Solusipay',
usesUntilPrompt: 2,
storeAppURL: {
android: 'market://details?id=com.solusipay.id'
},
customLocale: {
title: "Would you mind rating %@?",
message: "It won’t take more than a minute and helps to promote our app. Thanks for your support!",
cancelButtonLabel: "No, Thanks",
laterButtonLabel: "Remind Me Later",
rateButtonLabel: "Rate It Now"
},
callbacks: {
onRateDialogShow: function(callbacks) {
console.log('rate shown:');
},
onButtonClicked: function(buttonIndex) {
console.log('selected index: ', buttonIndex);
}
}
}
appRate.promptForRating(true);
}
Upvotes: 0
Views: 312
Reputation: 812
Please set simpleMode=true in appRate preferences
like below :
appRate.preferences = {
displayAppName: 'Solusipay',
usesUntilPrompt: 2
simpleMode : true, //this option is used to skip 1st popup
storeAppURL: {
android: 'market://details?id=com.solusipay.id'
},
customLocale: {
title: "Would you mind rating %@?",
message: "It won’t take more than a minute and helps to promote our app. Thanks for your support!",
cancelButtonLabel: "No, Thanks",
laterButtonLabel: "Remind Me Later",
rateButtonLabel: "Rate It Now"
},
callbacks: {
onRateDialogShow: function(callbacks) {
console.log('rate shown:');
},
onButtonClicked: function(buttonIndex) {
console.log('selected index: ', buttonIndex);
}
}
}
Upvotes: 3