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
Related
Okay, so here is my problem:
I made a little app for myself that uses the Maps API from Google. I followed the instructions on how to put the API key in the app and all that. I make my app, run it on my phone (via USB debugging if that's important) and it works just fine. Now, out of fun, I put the app on Google Play Store (for some of my friends and family to use it idk), and all of a sudden, the app doesn't work. What happened was, the map wouldn't load (as if i haven't put in the API key). Then I uninstalled the app, tried running it with USB debugging again, and the same thing happened. So I put in the new API key, and it works just fine. Uploaded the version 2 in the Play Store, same problem and the same situation. How do I fix this?
I will provide any additional information that you need.
Check if you've entered your API key within the google_maps_api.xml file in the release directory (/app/src/release/res/values) just like in your debug directory (/app/src/main/debug/values).
Then, if you have API key restrictions make sure that you are using right certificates for the debug and release builds. You can get your debug and release certificates by following the steps given on Google Maps SDK for Android documentation
I hope this helps! Goodluck on your project
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
after releasing the app, map is not showing.please any one help me. I followed many steps in stack overflow but i did not getting any correct answer
For Google Map to visible in all Devices after you launched your app in Android Market you need to create Keystore using Release Key.
Check this post for creating Signed Application and Register Map using Release Key
copy signed apk in your device and install it...!
so, I have published my android app which is using GoogleMap that means I indicated release fingerprint together with package name and it is working. Thank you for that.
But it is not working in Debug mode unless I edit fingerprint in Google APIs Console which I do not want as I already have millions of downloads (ok 7 or 8 downloads)...
Is there any way to make it work both on Debug and Release mode? A way could be adding two fingerprints to the APIs Console but... you know...
So, the thing is that you can add as many fingerprint and package names as you wish. The pair needs to be on the same line and new pair in new line. Otherwise ti won't even allow you to save the change.
If you do not want to add two signatures and package name combos to the Google Dev console, you could try using same signature (same key store) for both debug and release.
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?