unity-solutions
unity-solutions copied to clipboard
Hi, how can i change the user id?
How i can change this id in blue for something like the firebase authentication uid? (firebase leaderboard)
Can you help me, please?
Hello, when you call the LeaderboardController.AddScore()
, use the firebase authentication UID, which you will need to get from the FirebaseAuth package.
I did this but it's not working. Can you send me a example here? please.
Could you paste your code snippet so that I can see what you did? Also please provide more information on how it isn't working. If you're seeing an error, what is the error? If it's just not adding the score, please say so as well.
Could you paste your code snippet so that I can see what you did? Also please provide more information on how it isn't working. If you're seeing an error, what is the error? If it's just not adding the score, please say so as well.
Hi I am Facing The Same Problem , I have Correctly Setup Authentication using FirebaseGoogleAuth And after that i can successfully access the IDToken using(" FirebaseAuth.CurrentUser.UserId") now what i want is under the "all_scores" every entry that is created Is Named as the UserId Of that user so If my IDToken or User_ID is - ag447dnw9902dn820w22299 then when i upload my score then the entry that is created under the all_scores should be named as my user-id so the data structure would be like "{all_score} ->{ag447dnw9902dn820w22299}->{score,timestamp,user_id,username}" . But Currently When i pass the user id Then every Entry under The allscores is created with a random string value like HDWODnywunOL1, HDWODnywunOL2, HDWODnywunOL3, so how to fix this
Are you saying that when you call LeaderboardController.AddScore()
you are providing that IDToken as the User ID, but that the entries created have a random key instead of using that IDToken?
thank you for replying my problem is now solved
On Mon, May 18, 2020 at 10:54 PM Dane Zeke Liergaard < [email protected]> wrote:
Are you saying that when you call LeaderboardController.AddScore() you are providing that IDToken as the User ID, but that the entries created have a random key instead of using that IDToken?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FirebaseExtended/unity-solutions/issues/23#issuecomment-630325978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT5I4EGVYQWHS4WWFVLVI3RSFVL3ANCNFSM4JUMDO4A .
Are you saying that when you call
LeaderboardController.AddScore()
you are providing that IDToken as the User ID, but that the entries created have a random key instead of using that IDToken?
Yes Thats the Problem.
What is the name of this site?