如何使用离子框架在IOS上获取IMEI [英] how can I get IMEI on IOS with ionic framework
本文介绍了如何使用离子框架在IOS上获取IMEI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在具有离子框架的IOS上获取IMEI?
how can I get IMEI on IOS with ionic framework ?
推荐答案
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;
在iOS上,不需要权限.
On iOS, no permissions are required.
遗憾的是,在 iOS7 中不可能实现这一点,我相信Apple已停止访问iOS7中的这些详细信息.
This will not be possible sadly in iOS7, Apple stopped access to these details in iOS7 I believe.
这篇关于如何使用离子框架在IOS上获取IMEI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文