Skip to content

Instantly share code, notes, and snippets.

@macdonst
Created April 20, 2012 15:07
Show Gist options
  • Save macdonst/2429461 to your computer and use it in GitHub Desktop.
Save macdonst/2429461 to your computer and use it in GitHub Desktop.
IMEI Plugin for PhoneGap 1.5+
var IMEI = function(){};
IMEI.prototype.get = function(onSuccess, onFail){
return cordova.exec(onSuccess, onFail, 'IMEI', 'get', []);
};
cordova.addConstructor(function(){
cordova.addPlugin('imei', new IMEI());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment