Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API Key in release build doesn't work

I'm currently developing an application for Android and I'm using Google Maps API. In developer console, I added my SHA1 certificate print, followed by my package name. Even though I put this SHA1 certificate print using keytool, I can't access to the maps. I made lots of search, but every topics brought me to answers where error were in a wrong API Key in developer console. But I took the right SHA1, the one of my certificate.

Thanks in advance !

like image 794
Alexandre Daubois Avatar asked Aug 05 '15 13:08

Alexandre Daubois


People also ask

Why isn't my Google Maps API working?

There are a several reasons why your google maps may not be working, the most common issue being no Google Map API key set or set incorrectly. To use the Google Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.

Can I use Google Maps API without API key?

Googlemaps API key is required for built-in theme map element as it offers advanced options for map style, zoom and marker. However, you may use a standard Google Maps block of WPBakery or Elementor page builder to set up Google maps without API key.


1 Answers

My Map in release mode was showing but after I publish to Play Store it was not showing.

I had mentioned both debug and release certificate SHA-1 Key to Google Developer Console but map in release mode after downloading app from play store was still not showing.

Here' what was problem: Google Play App Signing is enabled for this app

Goto Release Management -> App Signing -> and copy the SHA-1 certificate fingerprint from App signing certificate

enter image description here

Paste this newly copied SHA-1 fingerprint to Developer Console and map in release mode will show.

like image 129
Noor Ali Butt Avatar answered Sep 17 '22 14:09

Noor Ali Butt