Rahil Ali
Rahil Ali

Reputation: 965

Google Fit integration issue in Android

I got this error while integrating Google Fit in Android:

Connection failed. Cause:
ConnectionResult{statusCode=SIGN_IN_REQUIRED,
resolution=PendingIntent{3162627d: android.os.BinderProxy@2a943572}}

LogCat:

12-11 12:21:00.207
21307-21307/com.google.android.gms.fit.samples.basichistoryapi
I/BasicHistoryApi: Ready 12-11 12:21:00.266
21307-21307/com.google.android.gms.fit.samples.basichistoryapi
I/BasicHistoryApi: Connecting...

12-11 12:21:01.369
21307-21307/com.google.android.gms.fit.samples.basichistoryapi
I/BasicHistoryApi: Connection failed. Cause:
ConnectionResult{statusCode=SIGN_IN_REQUIRED,
resolution=PendingIntent{3162627d: android.os.BinderProxy@2a943572}}

12-11 12:21:01.376
21307-21307/com.google.android.gms.fit.samples.basichistoryapi
I/BasicHistoryApi: Attempting to resolve failed connection

Upvotes: 0

Views: 679

Answers (2)

SpiritCrusher
SpiritCrusher

Reputation: 21043

You need to generate Outh2 Client fron google ai console with your package name and SHA1 HAsh key of your IDE

Upvotes: 0

Radek.T
Radek.T

Reputation: 95

i just had the same problem. Go to developer console, create new Project, -> API Maqnager -> Credencials -> new Credentials -> OAuth cielnt ID select Android and and set your fingerprint and package name.

Upvotes: 1

Related Questions