Google Maps not loading after publishing on play s

2019-01-17 17:40发布

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!

2条回答
迷人小祖宗
2楼-- · 2019-01-17 18:36

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.

查看更多
女痞
3楼-- · 2019-01-17 18:42

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

查看更多
登录 后发表回答