You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for the plugin. I am a NOOB to java / cordova and I have some difficulty in getting this plugin to work. I use a mobile app development platform. I have other plugins working and here is the sample of a JS file / plugin that works
cordova.define("com.badrit.MacAddress", function(require, exports, module) {
/*
* MacAddress
* Implements the javascript access to the cordova plugin for retrieving the device mac address. Returns 0 if not running on Android
* @author Olivier Brand
*/
/**
* @return the mac address class instance
*/
var MacAddress = {
getMacAddress: function(successCallback, failureCallback){
cordova.exec(successCallback, failureCallback, 'MacAddressPlugin',
'getMacAddress', []);
}
};
cordova.addConstructor(function () {
if (!window.plugins) {
window.plugins = {};
}
window.plugins.MacAddress = MacAddress;
return window.plugins.MacAddress;
});
});
Is it possible to change the JS in your plugin to suit my platform? If you could help in any way that'll be great. Mainly the part I couldn't understand was the exports / parameters below
hi,
Thanks a lot for the plugin. I am a NOOB to java / cordova and I have some difficulty in getting this plugin to work. I use a mobile app development platform. I have other plugins working and here is the sample of a JS file / plugin that works
And here is the code in your plugin / JS file
Is it possible to change the JS in your plugin to suit my platform? If you could help in any way that'll be great. Mainly the part I couldn't understand was the exports / parameters below
Thanks once again,
M&M
The text was updated successfully, but these errors were encountered: