Android Google Sign In for Leaderboards

488 views Asked by At

I am trying to update score using Google Leaderboards, for using Leaderboards I have to use Google SignIn API, my code is copied from https://developers.google.com and i have followed all the steps, created sha1 using:

keytool -exportcert  -alias androiddebugkey  -keystore <path-to-debug-keystore> -list -v

and put the APP ID in manifest file using:

<meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="@string/app_id" />
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />

but still unable to Sign In, it's been a month I am trying different approaches, but unable to pin point the exact problem, that's why I need your help.

enter image description here

1

There are 1 answers

4
Anusha Harish On BEST ANSWER

You have to create client id in google developer console with sha1 key and the package name of ur project..

Check this tutorial it will help you.. :)

http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/