Skip to content

promptAgainForEachNewVersion setting is ignored #335

@yjseo29

Description

@yjseo29

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.

document.addEventListener("deviceready", function() {
AppRate.init();
}, false)

The "AppRate.init()" function performs the "promptAgainForEachNewVersion" function.

.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions