FirebaseExtended / unity-solutions

Use Firebase tools to incorporate common features into your games!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi, how can i change the user id?

MayckonJhonatas opened this issue · comments

Screenshot_20191202-194621
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?

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?