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!
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
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.
来源:https://stackoverflow.com/questions/44570930/google-maps-not-loading-after-publishing-on-play-store-even-after-updating-sha-1