[英]How do I generate a unique ID from web/javascript and then generate same unique ID in android App?
Hi I would like to generate a unique ID from web/Javascript and also be able to generate the same unique ID in app without the two communicating. 嗨,我想从Web / Javascript生成一个唯一的ID,并且还能够在应用程序中生成相同的唯一ID,而无需两者进行通信。 I will not be using PhoneGap just pure javascript or probably a light library.
我将不会仅使用纯JavaScript或可能使用灯光库来使用PhoneGap。
I was initially planning to use the device ID but its not accessible from JavaScipt
without using PhoneGap. 我最初计划使用设备ID,但是如果不使用PhoneGap,则无法从
JavaScipt
访问它。 There are many ways I know how to generate a unique ID from native Android app
but I'd like to be able to generate the same one from the Web/JavaScipt
. 我知道有很多方法可以从
native Android app
生成唯一ID,但我希望能够从Web/JavaScipt
生成相同的ID。
Any help is appreciated thanks so much. 非常感谢任何帮助。
Unique ID Suppose to be Generated Only Once. 唯一ID假定仅生成一次。
Now come to your question: 现在问您的问题:
How do I generate a unique ID from web/javascript and then generate same unique ID in android App?
如何从Web / JavaScript生成唯一ID,然后在android App中生成相同的唯一ID?
You can not generate the same ID from two different places ie from Android Native and JavaScript/Web. 您无法从两个不同的位置(即从Android Native和JavaScript / Web) 生成相同的ID 。 Please keep in mind, not possible .
请记住, 不可能 。
Note : If you are able to generate the same ID again then that ID is not unique at all. 注意:如果您能够再次生成相同的ID,则该ID根本不是唯一的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.