how can I get IMEI on IOS with ionic framework

梦想的初衷 提交于 2021-02-07 20:18:02

问题


how can I get IMEI on IOS with ionic framework ?


回答1:


You can use the "Device" object from Cordova. The device object describes the device's hardware and software. Since "device" is assigned to the window object, it is implicitly in the global scope so you can easily call it in your onDeviceReady function eg:

var deviceID = device.uuid;

On iOS, no permissions are required.

This will not be possible sadly in iOS7, Apple stopped access to these details in iOS7 I believe.



来源:https://stackoverflow.com/questions/25413697/how-can-i-get-imei-on-ios-with-ionic-framework

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