I have use, fragment
for maps. and also i have putted same API key in both debug and release google_maps_api.xml
but it works only on debug mode. in release mode maps fragment is shown as empty. how to fix this issue.
I have use, fragment
for maps. and also i have putted same API key in both debug and release google_maps_api.xml
but it works only on debug mode. in release mode maps fragment is shown as empty. how to fix this issue.
referring to https://developers.google.com/maps/documentation/android-api/signup
you will have 2 SHA keys ... one for debug, one for release.
just enter the SHA finger print for the release app into your console and it should work.
open your console using this link https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&reusekey=true
under credentials, enter the sha and your package names (see image below).
For my case, i use the same API key for two apps (and debug and release), hence there are 4 rows.
Pls. try this: use adb to install the apk on your device/emulator (adb install app.apk). Don't forget to uninstall the debug version first, otherwise the signature difference will prevent the installation