MAC address of mobile in ionic-angular app

我只是一个虾纸丫 提交于 2019-12-25 18:38:53

问题


I am developing an IONIC app for android and iOS using AngularJS. I want to access the MAC address of the device. How can I achieve this ??


回答1:


for Cordova >= 5.0.0

cordova plugin add com-badrit-macaddress

Example Usage:

   window.MacAddress.getMacAddress(
     function(macAddress) {alert(macAddress);},function(fail) {alert(fail);}
   );


来源:https://stackoverflow.com/questions/41804344/mac-address-of-mobile-in-ionic-angular-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!