PhoneGap Build App Rate - 无法正常工作

PhoneGap Build App Rate - Cannot get it working

所以我根据日志文件安装了插件。但出于某种原因,我就是无法让它工作。 和想法?

<script type="text/javascript" charset="utf-8"> 
function onLoad() {
        document.addEventListener("deviceready", onDeviceReady, false);
    }

function onLoad() {
    var AppRate;
    AppRate.preferences.storeAppURL = {
    ios: '123456789'
    };

    AppRate.promptForRating();
    }
</script>   

您有两次 onLoad() 函数,但您没有调用它。应该是:

$(function () {
    document.addEventListener("deviceready", onLoad, false);
});

function onLoad() {
    var AppRate;
    AppRate.preferences.storeAppURL = {
        ios: '123456789'
    };

    AppRate.promptForRating();
}