Cordova (once PhoneGAP) plugin to access iOS MAC address
Objective-C JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.mdown
ShowMAC.h
ShowMAC.js
ShowMAC.m

README.mdown

ShowMAC Cordova Plugin

Since access to the UUID is deprecated under iOS there is the need to have a Unique identifier per device, one way is to use the MAC adress of the first interface.

Usage

  • Copy the ShowMAC.m and ShowMAC.h into your Xcode Project, probably the best place would be Plugins
  • Copy the JS file in your www directory and include it in your html to use it
  • call from JS (with jQuery) via
  $(document).bind('deviceready', function(){
    window.plugins.showmac.get( 
      function(m){
        console.log("Device MAC Address is" + mac);
      }
   );    
 });