简体   繁体   English

用Java进行设备识别

[英]Device recognition with Javascript

What properties we can use to recognize a user device ? 我们可以使用哪些属性来识别用户设备? , i know UserAgent but it can be same for multiple devices. ,我知道UserAgent,但对于多个设备可以相同。 Any unique property or combination of multiple properties to recognize a device. 识别设备的任何唯一属性或多个属性的组合。

You can use a solution such as fingerprintjs2, cf documentation here : https://github.com/Valve/fingerprintjs2 您可以在此处使用诸如Fingerprintjs2,cf文档之类的解决方案: https : //github.com/Valve/fingerprintjs2

And store the unique ID in a cookie or local store...for recognizing the user later... 并将唯一ID存储在Cookie或本地存储中,以便以后识别用户...

There are other solutions for generating uuid, you can see some of them in Github, such https://github.com/kelektiv/node-uuid or https://github.com/LiosK/UUID.js 还有其他生成uuid的解决方案,您可以在Github中看到其中的一些解决方案,例如https://github.com/kelektiv/node-uuidhttps://github.com/LiosK/UUID.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM