Ionic AppRate显示另一个弹出窗口



我试图在ionic中的android平台中显示应用程序评级屏幕,但在评级弹出之前还有另一个弹出窗口。

知道这个弹出窗口是从哪里来的吗?图像1

当我点击左侧的空按钮/文本时,它显示了我的应用程序评级图像2

我可以删除第一个弹出窗口吗?

这是我的AppRate代码

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);
}

请在appRate首选项中设置simpleMode=true

如下所示:

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);
}
}
}

最新更新