Google Play Services are only working while debugging

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlexGifford

I set up Google Play Services on my mobile game so that I could add a leaderboard.

When I open up the app on mobile, debugging over USB, I successfully log in to Play Services and am able to view the leaderboards.

But, when I published my app on the Google Play Store I do not successfully log in to Play Services and I cannot view the leaderboards.

I’m completely new to this and would really appreciate some help. Please let me know if you have any ideas!

Edit: I’m using this plugin to connect Google Play Services GitHub - cgisca/PGSGP: Play Games Services plugin for Godot Game Engine - Android

Did you use the “old way” of exporting to Android or did you use the new custom build system? If you used the old way, did you install an export template both for debug and release modes?

Calinou | 2021-03-04 02:19

I’m not sure what the old way is, but reading over the guide, it looks like I used the custom build system.

I followed this guide for exporting to android : https://www.youtube.com/watch?v=XHj2CMu4rJQ&t=396s

AlexGifford | 2021-03-04 15:20

Same Problem. What did you do?

The Asker | 2022-12-09 22:13

It’s been a while, so I don’t fully remember, but I did dig up a comment I made to someone else who asked me and here’s what I told them:

My problem was the SHA-1 certificate fingerprint on the OAuth client ID screen. I was getting the fingerprint from the command prompt as described in a video, but it finally worked when I switched it to the fingerprint found in the Google play console in the Setup, App integrity section.

AlexGifford | 2022-12-10 16:07