pluginfutronic
Advanced tools
Comparing version 0.0.68 to 0.0.69
{ | ||
"name": "pluginfutronic", | ||
"version": "0.0.68", | ||
"version": "0.0.69", | ||
"description": "Plugin For Fingerprint", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -63,1 +63,29 @@ /*global cordova, module*/ | ||
module.exports = { | ||
deviceinfo: function (successCallback, errorCallback) { | ||
argscheck.checkArgs('fF', 'Device.getInfo', arguments); | ||
cordova.exec(successCallback, errorCallback, "FutronicScanner", "deviceinfo", [usb_host_ctx]); | ||
} | ||
}; | ||
module.exports = new Device(); | ||
function Device() { | ||
this.manufacturer = null; | ||
var me = this; | ||
channel.onCordovaReady.subscribe(function() { | ||
me.getInfo(function(info) { | ||
//ignoring info.cordova returning from native, we should use value from cordova.version defined in cordova.js | ||
//TODO: CB-5105 native implementations should not return info.cordova | ||
me.manufacturer = info.manufacturer || 'unknown'; | ||
channel.onCordovaInfoReady.fire(); | ||
},function(e) { | ||
me.available = false; | ||
utils.alert("[ERROR] Error initializing Cordova: " + e); | ||
}); | ||
}); | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1643658
1067