Google Maps not loading after publishing on play store even after updating SHA 1 fingerprint for release key
Asked Answered
V

5

11

A newbie here to google maps api and android app development. I am facing some strange issue and struggling with this from two days. I have developed an app in which I have used Google maps. I have launched the app to play store. The google map loads perfectly fine when I install the signed apk directly to mobile but not when I install through play store.

I have updated google maps api console with release key SHA 1 fingerprint. I am not able to find any solutions online also and did not get any support from google support team also. Somebody please help!

Ventricle answered 15/6, 2017 at 15:4 Comment(2)
Probably you're using the fingerpint for debuggin. Please check this linkNeddra
Adding the SHA-1 fingerprint from App Signing certificate in play console to the credentials in google developers console should work.Footboard
F
38

If u have enabled the App Signing Feature in the Developer Console, then it's clearly written in the documentation that the Upload Certificate is only needed by Google for authentication and that upload certificate is removed before installing the application on the user's phone. So, u also need to give the App Signing Certificate SHA under the key which you have enabled for Google Maps API. The App Signing Page is as I have attached the screenshot for your convenience... In the image I have marked which you need to give as additional credentials

enter image description here

Framing answered 16/6, 2017 at 9:28 Comment(7)
Thank you Chandan Suri. I also figured out the same and it worked.Ventricle
Your Welcome... Happy to help.Framing
this valid answer!!Subastral
Issue remains :(Hugo
where to use this sh1 key ?Hindoo
this key has to be used in a file present in the maps activity related file, there you need to paste your SSH key, then it would run in the release mode as well...Framing
@ChandanSuri bro can u help me out where to put SHA-1 certificate fingerprint..??Player
M
1

Regarding the accepted answer: In the good old days you would create 2 API keys, one for debug and one for release. Each one used the relevant keystore SHA1 you have created. But due to "Google Play App Signing" the SHA1 you have used for your release version is not valid anymore (Google removes the release certificate including your SHA1 before uploading). So the easy solution is to get back in Play Store Console, copy SHA1 from App Signing Certificate (NOT from the Upload Certificate in the bottom!) and put it in the release Google Maps Android API, save and it will refresh without creating a new key.

Milreis answered 3/1, 2019 at 20:19 Comment(1)
i can't find where to put the copied sha1 from app signing certificateSwingeing
G
1

When you upload and publish the app play console uses your key for upload purpose only. To sign and publish each releases it uses different key certificates that you can find under

Setup -> App Integrity section

Just copy SHA-1 key from there and update it with google map api key. After that your map will start working.Play console snap to show app signing

Guido answered 23/2, 2021 at 9:45 Comment(0)
C
0

You can paste the copied sha1 in " restrict usage to your android apps " in restrict and rename Api key

Crelin answered 10/3, 2020 at 13:50 Comment(1)
This looks like it should've been a comment on Brian K.'s answer.Tripp
K
0

If you don't have any restriction and you are getting this error; make sure your debug/main key and release key are the same or release key is valid.

Kultur answered 14/4, 2020 at 8:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.