Did anyone manage to get it to work? Just keeps on returning “n/a”.
Will that work in the final release?
I used it to identify users in my WebPlayer app. Now I want to move this app to webgl without loosing the users references.
Does anybody know?
This is not supported and will never work on WebGL. There are techniques used in order to uniquely identify users on the web using JavaScript (look for “Evercookie” or “browser fingerprinting”), which you could implement in Unity WebGL, but those are generally considered evil due to privacy violations, and browser makers are trying to make this techniques hard to use. The properly established way would be to use cookies on the web page, which would allow users to opt out from the browser preferences. In either way, it is not technically possible to get a unique user ID in WebGL, which would match the one returned by the WebPlayer (unless you want to embed a WebPlayer into your WebGL app
).
PlayerPrefs seem to be here an option. I guess they will stay.
Yes, PlayerPrefs work (implemented on to of HTML5 IndexedDB local storage).