playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 963 forks source link

Firebase messed up GPGS authentication #3171

Closed rico345100 closed 2 years ago

rico345100 commented 2 years ago

Describe the bug Currently, I'm collaborating on advertising my game with Google's official advertising team.

Recently, they requested me to link my game with Firebase to track user events and analysis. So I made a new Firebase project and entered SHA-1 digital fingerprint on that project today.

But after doing this, all users can't able to authenticate anymore. So I removed the SHA-1 from the Firebase project, and now it works back, but it lost all the saved progress in SavedGames.

Countless users will lose their data causing this. Why does registering SHA-1 digital fingerprints on the Firebase project to track data ruin the Google Play Games authentication, and why are all the saved data disappeared when I reverted it? It's a desperate situation. Please somebody help me.

To Reproduce Steps to reproduce the behavior:

  1. Make a new Firebase project
  2. Add SHA-1 digital fingerprint
  3. Back to the game
  4. Authentication will always fail
  5. Remove added SHA-1 from the Firebase project
  6. Authentication might work but all progress is gone

Versions

rico345100 commented 2 years ago

Adding the SHA-1 app signing certificate in Google Cloud OAuth fixed this problem, but my achievement and leaderboard is now totally broken.

I think it's a separate issue, so I'll close this one. If you faced the same problem just like me(authentication works but achievement and leaderboard are dead), you should check this one: https://github.com/playgameservices/play-games-plugin-for-unity/issues/3187