Google Play Services Failing / Been Trying for Days

I’m basically at my wit’s end here. I’m trying to use google play services in my game, but it is turning out to be so incredibly difficult. I would be so grateful to anyone who would be willing to throw out anything to try. I’ll be as detailed as I can. If I leave anything out let me know. I’ve done all this multiple times, starting from the ground up because there doesn’t seem to be a unified resource on how to do this.

Here’s a list of everything I’ve done.

-“enable google play services” checked in project

-Generate SHA1 fingerprint

-Include SHA1 fingerprint in ue4 project for signing and creating a client ID

-Included games app ID in project settings

-“Distribution” box is checked, so it doesn’t use debug fingerprint

-Included google license key in my ue4 project settings

-ensured .xml file was updated correctly

-Used the same package name in project, in google play services and app dashboard.

-Made a privacy agreement and linked to project

-Linked application to services and completed services setup. All green check marks

-Set up leaderboards from google services and added leaderboards

-Added leaderboard id’s to unreal project

-Connected list of testers, including my own email, allowed that list in services

-Enabled the following APIs

Google Cloud Messaging for Android\

Google Cloud Pub/Sub

Google Cloud User Accounts

Google Play Android Developer API

Google Play Game Management

Google Play Game Services

Google+ API

-Linked to google api, same package name and sha1 fingerprint

-Added Server Key to google api

-Linked privacy policy in google api

-Included the following in the packaging

-added the following to manifest node in the ue4 android project settings:

com.google.android.gms.games.APP_ID="@string/app_id"

com.google.android.gms.appstate.APP_ID="@string/app_id"

-added the following to “extra permissions” right next to the information above:

com.android.vending.BILLING

android.permission.INTERNET

android.permission.GET_ACCOUNTS

android.permission.USE_CREDENTIALS

Is there something I’m supposed to do with the api keys? I mean, I am just stumped. I have done sooooo much reading about how to do this and I think this is all I need to do, and it should work. I’ve basically started all the way over just to make sure I did everything exactly as instructed.

But when I call “Show external login UI”, I get the “connecting to google play games” pop-up, then a loading circle, then it fails. I feel like I’ve tried everything. Is there something else I need to include in my blueprints?

Please, anyone who has even a little experience with this, help. I’ll post pictures or be as specific as requested.

Shameless self bump. What do I have to do to get someone to help me? I’m desperate.

Hi, i have the same problem like you. The problem come from “Show external login UI”. I found this link ( Troubleshooting Issues in Your Android Game  |  Play Games Services  |  Google Developers ) It can help to found the problem with the google service api.

So how did you manage to generate your SHA1 fingerprint. I keep trying to get it through the command prompt using keytool -list -keystore D:.…\UE4\VMobile_VR\Build\Android> as the file path but it keeps kicking me back that the syntax is incorrect. Any help would be greatly appreciated.

Before to link a application, generate a file .keystore and after you can found the SHA1 fingerprint. Here you have a link that explain 2 steps ( Android: Generate Release/Debug Keystores (Example) )
When you have the SHA1 fingerprint, you can link the api google play service with your application.
That’s all.

Hi, I had same problem

Still struggling with the leaderboards&achievments but I could login.

Below solution will only work if you package your project in SHIPPING

First there is 2 concept of signing.

  • for upload
  • for using google API’s

to communicate with google API you need to use upper SHA-1 for Outh-2 requester(below)

I can successfully login. But cannot go further.

Another solution is not open app signing at googleplay side.
I hope both helps, If you have solution about leaderboard and such stuff, please share with me.

Cheers

Ok, I had same problem for past 4 days, this is how I fixed it:

Deleted game from app store and game service(unpublished)

Remade it step by step guide I found, but here is where the problem came from:

When you sign your app with sha1 fingerprint from keystore:
Make sure you get the SHA1 USING THE PATH IN ANDROID=>BUILD=>project.keystore
Not the one in c/user/.keystore.

So when you generate your keystore, place it in build=>android, and get the SHA1 FROM THERE.
Hope it helps.