如何使用cordova获取Android和Windows设备的UDID? [英] How to get UDID for Android and Windows devices using cordova ?

查看:182
本文介绍了如何使用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;


当< a href ="https://github.com/apache/cordova-plugin-device"target ="_ blank">
cordova设备插件。


这篇关于如何使用cordova获取Android和Windows设备的UDID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆