Can js get the unique id? of the current device?

now to achieve a function when a user does not log in to save something, you need to send a unique id, user of the current device to log in to token
I want to know if js can get the only id, of the current device. I can"t find some examples on the Internet, either Android or ios methods have not found the js method. I don"t know if no one has encountered it or I haven"t found it. I hope someone can give guidance!

Jul.15,2021

according to the relevant security restrictions on web browsers, the web status cannot obtain a unique ID. You cannot read the information unless you are APP, and have obtained the relevant permissions.
otherwise you can't get it.

there is actually an additional way to deal with similar problems
for example, it is possible for you to generate a unique ID stored in kookie for tagging, which does not require special permissions.


you can refer to the web fingerprint. For the same browser, the user's identity is unique, but not across browsers


web can't get IMEI


the answer is: you can't get
, but you can use other methods
1. Android or ios throw
2. Generate a random number yourself

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a751-2c20b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a751-2c20b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?