Get User Name from Google Plus in android

前端 未结 5 2020
迷失自我
迷失自我 2021-01-17 16:11

I have integrated Google plus with my android app. Everything is working fine, i am also connected to Google plus but I am not able to get the name of current user logged.

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 16:56

    Check that you generated both of debug and production Client ID by SHA1 keystores. It display in APIs & Auth -> Credentials tab of your project.

    Setting up OAuth 2.0 for Android documentation says:

    In a terminal, run the Keytool utility to get the SHA1 fingerprint for your digitally signed .apk file's public certificate.

    ...example for debug-keystore...

    Important: When you prepare to release your app to your users, follow these steps again and create a new OAuth 2.0 client ID for your production app. For production apps, use your own private key to sign the production app's .apk file.

提交回复
热议问题