7

I have Android app which include Google Maps It was working fine before releasing the app, but after releasing the maps are not shown. Although I've added SHA-1 certificate fingerprint from Google console after releasing and added it to the restricted apps

SHA-1 after releasing

API Key Restrictions

So the 2 SHA-1 are included with the package name, the Maps works fine when running the app directly from android studio, but it shows nothing when downloading the app from playstore, any Ideas ?

3
  • Any help, I've tried alot but the issue still the same ? Jun 12, 2018 at 18:47
  • Also I've removed the restriction for api using, but still not working when installed from playstore..... Jun 12, 2018 at 18:53
  • same here. any update?
    – windchime
    Jun 24, 2018 at 17:38

2 Answers 2

14

It's because Google Play is signing app with different SHA-1 Fingerprint, so you need to take it and register in google developer's console

enter image description here

2

I recently had the same problem. Please make sure you have set your release api key on your app resources.

In your app you might have:

src/debug/res/values/google_maps_api.xml

where you set your debug key and also:

src/release/res/values/google_maps_api.xml

where you must set your release key. If you have created only one API Key with both SHA-1, then you must introduce the same as in debug.

One more thing, in the Google Developers Console besides the debug SHA-1 and the Google Play Console SHA-1 I also add the release SHA-1 of the keystore I've use to sign my app.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.