如何使用cordova获取Android和Windows设备的UDID?

问题描述:

嗨;

我正在使用cordova开发移动应用程序。我的应用程序是针对Android和Windows设备。

I am developing a mobile application using cordova. My application is be targeting for both Android and Windows devices.

在我的应用程序中,我想获取与设备身份验证相关的东西的UDID。

In my application I want to get the UDID for device authentication related stuff.

任何人在这里有一个关于如何使用cordova获取Android / Windows设备的UDID的想法?

Anyone out here has an idea about how to get UDID for android/Windows devices using cordova ?

我做了一些研究,发现UUID很容易获得,但根据我的理解,UUID是特定于应用程序的不是我用的。

I did some research and found that UUID is available easily but as per my understanding UUID is application specific which is not of my use.

还有一个名为"Serial"的属性。这是设备硬件序列号,但在某些情况下可能不会限制我使用它。

Also there is one more property called "Serial" which is device hardware serial number but it might not be there in some cases which restricts me using it.

如果有人知道获取UDID,请回复。

If anyone has any idea about getting UDID, please reply.

问候;

Aniket

UDID是Apple特定的,在Android或Windows上不可用。如果你想获得设备标识符,你只需使用
UDID is Apple specific and not available on Android or Windows. If you want to get the device identifier, you can simply use
var uuid = device.uuid;



cordova设备插件。