Open diogoandrei opened 4 years ago
any update on this?
openurl parameter is failing, so you have to attach the callback function instead.. this code is working with latest version of cordova.
`AppRate.init();
AppRate.preferences = {
displayAppName: 'My GreatApp',
usesUntilPrompt: 3,
promptAgainForEachNewVersion: false,
inAppReview: true,
simpleMode: true,
storeAppURL: {
ios: '
AppRate.preferences.openUrl = function(url) { window.open(url, '_blank', 'location=yes'); }; AppRate.promptForRating(); //you can put false here to use usesUntilPrompt instead`
Hi, I'm having an issue when the user click to rate in dialog. I'm testing with a
<packagename>
of an app that already is published in play store. But when I hit the rate button it does nothing and throws the exception belowRunning version:
"cordova-plugin-apprate": "^1.5.0",
Exception:
TypeError: Cannot read property 'open' of undefined at Object.openUrl (file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js:218:30) at Function.AppRate.navigateToAppStore (file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js:257:27) at promptForStoreRatingWindowButtonClickHandler (file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js:85:17) at Object.callbackFromNative (file:///android_asset/www/cordova.js:287:58) at <anonymous>:1:9
My code: