I know that deviceUniqueIdentifier is not supported for webGL. So I used Guid.NewGuid() and I save it to PlayerPrefs. My question tho, is there a way to have the same “id” for the device? Now I have a different key for Chrome and Firefox. Is it also possible to not save it to PlayerPrefs, so something like deviceUniqueIdentifier?
1 Like
while clearing history of chrome. we loose the player preference. i need also help about to get unique identifier for particular machine. so we can get every time same.
1 Like
Unfortunately there is no way to identify a machine on the web using any kind of JavaScript/Web API. The feature does not exist by design - it is called “fingerprinting”, and is generally considered a violation of web privacy.
Though big companies do that all the time via different methods, e.g.:
- We’ve analysed 500,000 browser fingerprints. Here is what we found. | by Peter Hraška | Slido developers blog | Medium
- Device fingerprint - Wikipedia
- [PDF] Web-based Fingerprinting Techniques | Semantic Scholar
So if you do want to identify a device, you’ll need to do that by some clever means like illustrated above.
1 Like