我正在尝试将card.io集成到phonegap android

时间:2015-10-09 11:52:34

标签: javascript phonegap-plugins cordova-plugins card.io

我正在尝试集成card.io for phonegap android.i已经添加了插件以及java文件,但它在单击“scanBtn”时给出了错误“Uncaught ReferenceError:CardIOPGPlugin not defined”。 这是我在html页面中使用的以下代码:

var onCardIOComplete = function(response) {
    console.log("card.io scan completed");
    console.log(JSON.stringify(response));
};

var onCardIOCancel = function() {
    console.log("card.io scan cancelled");
};

$('#scanBtn').click(function() {
    CardIOPGPlugin.scan(onCardIOComplete, onCardIOCancel);
});

以下是我用作参考的链接:https://github.com/cubettech/phonegap-plugins/tree/master/Android/card.io

0 个答案:

没有答案
相关问题