I got my Google Map API key and embedded it in my code. At this moment MAP was working. No issues at this point.
Then, I generated signed apk and released the app on playstore. On downloading the app - map was not working (not showing any visuals) in any device.
Then to get Map API for release version (as I came to know later),
I did this:
- Generated signed apk using same keystore.
- Discovered my SHA1 certificate for that keystore. (Using this tutorial)
- Got new API from google Map APIs using this new SHA1 certificate and my package name.
- Embedded this new API into res > values > google_maps_api.xml file. Also, I added new API key in manifest.
Now, when I run the app, Map fragment is not showing any visuals. It looks pretty much like this: