Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usesUntilPrompt not showing each 3rd time in AppRate Plugin #322

Open
VishnuV02 opened this issue Jul 14, 2022 · 0 comments
Open

usesUntilPrompt not showing each 3rd time in AppRate Plugin #322

VishnuV02 opened this issue Jul 14, 2022 · 0 comments

Comments

@VishnuV02
Copy link

In my ionic application, i gave usesUntilPrompt as 2, so it needs to be shown each and every 3rd attempt. Android it is working fine. But in iOS, alert is showing only once, after that nothing happening. Please help on this. Below is the code for reference,

ratingCompnd() {
this.appRate.preferences = {
// openStoreInApp: false,
displayAppName: this.translate.instant('RATING.01'),
usesUntilPrompt: 2,
promptAgainForEachNewVersion: true,
storeAppURL: {
ios: "itms-apps://itunes.apple.com/app/id671696873",
android: 'https://play.google.com/store/apps/details?id=com.io.Myapp'
},
customLocale: {
title: 'Thanks for being our \n Customer',
message: 'Kindly rate us in AppStore',
cancelButtonLabel: 'Cancel',
laterButtonLabel: 'Remind me later',
rateButtonLabel: "Rate Now'
// yesButtonLabel: "Yes!",
// noButtonLabel: "Not really",
// appRatePromptTitle: 'Do you like using %@',
// feedbackPromptTitle: 'Mind giving us some feedback?',
},
simpleMode: true,
useCustomRateDialog: true,
callbacks: {
onRateDialogShow: function (callback) {
console.log('rate dialog shown! : ' + callback);
// alert("rate dialog shown! : " + callback)
},
onButtonClicked: function (buttonIndex) {
console.log('Selected index: -> ' + buttonIndex);
// alert("Selected index: -> " + buttonIndex)
},
handleNegativeFeedback: function (data) {
console.log('negative feedback : -> ' + data);
// this.CONSTANTS.RATING_COUNT_RESET = data;
// alert("Negative feedback: -> " + data)
}
}
}

// Opens the rating immediately no matter what preferences you set


if (this.appRate.preferences) {
  alert("* App Rate reset *" + this.appRate.preferences)
   //this.appRate.preferences.usesUntilPrompt -= 1
}

this.appRate.promptForRating(false);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant