My app is a geolocation app which silences mobile on entering a geofence.I am able to see googlemaps completely on my debugging apk .however,after downloading it from the playstore,everything works fine except it doesnt show the googlemaps.Instead it shows
Please let me know the problem with that.does the google maps key needs a fix?
well what you have added is the debug API key which would support your google map in debug mode if your to install your application directly from the Android Studio.
what you need to do is add release API key to the project,
There are two different API keys that you need to deal with while working with Google Maps one is debug and other one is release Key.
you need to generate SHA1 key in release mode and create a API key using this SHA1 and your project package name, so you can see the Google map work in release mode,
easiest way to get SHA1 for release mode is to run your application in release mode and while rendering Google map it would throw you an error along with SHA1 key with which you need to make release API key
Related
Maps worked properly for debug version and also for first four release versions (Alpha testing).
Now debug version works okay, but maps don't show in new release version. I also added SH1 from my Google Play Console of course, but still nothing. Now I generated new API key and also this key is unrestricted, so it should be always work, but still maps is "white" with Google logo in left down corner
It was my stupid silly mistake. I had one google_maps_api.xml with API key which I added manually at the beginning with my first map fragment. Later I added another map fragment automatically via Android studio. This added two google_maps_api.xml more. So finally I had google_maps_api.xml in
src/main/res/value
src/release/res/value
src/debug/res/value
In the src/release/res/value/google_maps_api.xml I had "YOUR_KEY_HERE" instead of API key.
Bottom question:
I deleted both release and debug files and I have only one in main. If I want to have only one API key for debug and release, is there any other reason to have two google_maps_api.xml files in release and debug folders instead of only one file in main?
Hi I am doing project with map.i finished my map and published,but after publish the map is not visible.so i searched and find a method to get fingerprint for release fingerprint and generate API key.Now i am going to publish my app as a new one.But before going to publish,i want to check that whether map will visible after publish or not.Is there anyway to check it before publishing.Please help me.
simply install the release build in an android device,if it works there it will work after publishing too.
Also note that google provides different api keys for debug and release builds.
So depending on the build and flavour , u need to use the corresponding keys in your app
I have an application with a Google Maps in the center. However while programming and debugging it all worked fine. Now we created a release application and we found out the current API key is not working.
Now I created a SHA1 key and added my package name to it inside the developer console. It generated a key for me, however this key isn't working either in a release apk.
I tried several things like regenerate it a few times or reinstall the app.
Anyone know what might go wrong?
Make sure you're creating your SHA from the key that you're signing the application with. This SHA will be different than the one that you use for the debug builds.
Make sure that the application is actually getting signed correctly.
Make sure that the package you're providing for the key is correct.
I'm having a problem. I had a debug md5 code that was generated. I switched the code so I can publish my app, I now get a grey screen when i run my emulator. The map doesn't show up any more. Is this a problem? should i trying getting another md5 code to use? Or can the debug code work?
You must generate another API code. Your Google Maps API code is generated based on the keys your app is signed with, therefore if you sign your app with release keys, you must generate an API code which is generated using the same release key.
I am implemented Google map in my application it's showing Google map on device before creating signed apk. When i created signed apk then it's not showing Google map on device so I am not getting what I did wrong so any one can give me suggestion.
Without any additional information to go on, I'm going to assume you created the release APK still using the debug Google Maps API key. You will need to use create a API key for the release APK. See: http://code.google.com/android/add-ons/google-apis/mapkey.html#getfingerprint
If its something else, could you add logcat output to your original post?