-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Description
Hello,
First of all, thank you for developing the plugin.
The promptAgainForEachNewVersion setting is ignored.
Looking at the code, when the "deviceready" event occurs, "AppRate.init()" Run the function.
cordova-plugin-apprate/www/AppRate.js
Lines 345 to 347 in 87be3ef
| document.addEventListener("deviceready", function() { | |
| AppRate.init(); | |
| }, false) |
The "AppRate.init()" function performs the "promptAgainForEachNewVersion" function.
cordova-plugin-apprate/www/AppRate.js
Lines 258 to 265 in 87be3ef
| .then(function(applicationVersion) { | |
| if (counter.applicationVersion !== applicationVersion) { | |
| counter.applicationVersion = applicationVersion; | |
| if (preferences.promptAgainForEachNewVersion) { | |
| updateCounter('reset'); | |
| } | |
| } | |
| }) |
Since the "AppRate.init()" function is executed first by the "deviceready" event, setting "AppRate.setPreferences" is ignored.
Please take a look.
thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels