I am trying to figure out the best way to allow anonymous logins on a WebGL game built in Unity. My first thought was to go for Unity's built-in SystemInfo.deviceUniqueIdentifier, however, after testing this out, I found that this functionality is not supported in WebGL, the only alternative I can think of is to generate an id on my own and save it to the cookies (if one doesn't exist and they have chosen not to link an account explicitly).
What is the best practice for generating an ID like this dynamically that I can guarantee is unique across all of PlayFab, within the WebGL constraint.
Thanks for your help!
Chris
Answer by SethDu · Dec 18, 2020 at 02:41 AM
You may consider using GUID as the custom ID of the player account. Please refer to Brendan’s answer in this thread: How to get unique id on the clinet (WebGL) - Playfab Community
This is perfect! Thanks so much for pointing this out. It worked perfectly!
Answer by Tuomas Karmakallio · Feb 02, 2021 at 07:13 AM
Good solution here : https://community.playfab.com/questions/16628/deviceuniqueidentifier-in-unity-sdk.html
Unicorn Battle iOS build returns "GetAccountInfo Timed out after 10 seconds." 1 Answer
Google Authentication Error 3 Answers
How to log into original account on reinstall or new device? 1 Answer
understanding the authentication flow better, few questions 1 Answer
Integrate my own server with Playfab's Multiplayer system 1 Answer