Google Places for Android API key does not work on app from Play Store

前端 未结 5 2082
感情败类
感情败类 2021-01-11 10:38

I recently launched an Android app which makes use of the Google Places autocomplete widget/API. As part of the configuration for this, I added the API key to my Android\'s

5条回答
  •  北海茫月
    2021-01-11 11:08

    Your Statement in question ===>I also entered the correct package name and SHA-1 hash for my app

    Problem: Actually till now you just sign your app with your upload key but for play store you required google created SHA-1 .

    Here is more detailed explanation

    How app signing by Google Play works.[Document Link]

    Step 1: Create an upload key

    Step 2: Prepare your release

    Step 3: Upload your signed app

    Step 4: Register your app signing key with API providers

    Before the app is delivered to users, Google Play will remove your upload key signature and re-sign with a new key.

    It means You sign your app with your upload key. Then, Google verifies and removes the upload key signature. Finally, Google re-signs the app with the original app signing key you provided and delivers your app to the user.

    So to resolve your problem you required to do these additional steps after Upload your app to Google Play and app has been submitted and approved

    1. Select your app from Google Play Console,Go to Development Tools -> Release management -> App signing.

    2. Copy the first SHA-1 certificate which Google Play has issued after uploading the app.

    3. Go to Google Console and go to your project.

    4. Select your API-key, and paste the SHA-1 after package name.

提交回复
热议问题