UNREGISTERED_ON_API_CONSOLE while getting OAuth2 token on Android

前端 未结 6 2278
礼貌的吻别
礼貌的吻别 2020-11-29 05:56

We\'re under Android (Jellybean and higher), and we\'ve got an app which need to use OAuth2 with Google for authentication.

I simplified the login activity, but it\'

6条回答
  •  一生所求
    2020-11-29 06:48

    For anyone still struggling with this, here's what worked for me:

    If you enroll your app into the Google Play App Signing program, then your KeyStore is not used de facto to sign the application once it reaches the play store - that's why the fingerprints don't match.

    Google removes your certificate and creates a new signing certificate that is used to sign your APK.

    In the Play Console go to Release Management -> App signing

    If you opted in to Google Play App Signing, you'll see 2 certificates there along with all of their fingerprints. Use the App Signing Certificate fingerprint instead of the Upload Certificate which is your KeyStore.

提交回复
热议问题