I've tried to use Google Maps SDK for Android in my app and some users are saying they are loading an empty map.
It looks something like this: https://i2.paste.pics/FAUVC.png
However, I'm not able to reproduce the problem myself. In theory, location permissions are not required to load the Map SDK. I've checked my API key in the Google Cloud Platform Console and found all of my responde codes have been 2xx so far.
Would anyone have any ideas on what this issue might be?
Related
I tried to add map activity in my android application. I generated the API key and without any error I have finished the coding but in my output I am not getting the map displayed only the grid lines are visible. Please help me to display the map or please help me with the codes. I have installed the respective Google libraries.
This problem is usually derived from a problem in referencing google-play-service library.
Take a look at this blog post I wrote on how to integrate Google Maps in your application, especially the first 3 steps:
Google Maps API V2
another cause of this could be that you haven't configured the Google API Console properly, so I suggest you to take a look at this guide as well:
Google Maps API V2 Key
another reason that may cause this is if you have some kind of problem in your permissions in the manifest file. You can look at the first guide for the needed permissions as well.
So, I am building a simple PhoneGap application that loads a Google Maps API V3 view. I have searched far and wide for an answer, but I have not found a thing. I get the following error when trying to load the API:
"Google has disabled the use of Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API V3 on this site."
I have tried everything. In Cordova, I have all domains whitelisted (""), and the same in the Google Play Developer Console (""). I have even tried whitelisting "file://", but no such luck.
What drives me nuts is, when I use my code outside of the scope of PhoneGap, it works fine. Can anybody shed some light? Thanks!
I have the same issue.
I changed the Google developers console Api key referrers from '*' to '' and then solved my problem.
Just leave the referrers field it blank.
I hope it help. I spent about 4 hours to solve it :#
I'm really hoping someone can help me. I'm using google maps in an application. I am working on someone elses code so I'm not sure how to fix this problem. The code checks to see if textureview is supported, if it is use it else use surface view. The maps work perfectly with newer devices, however, when testing it on a htc desire 2.2.2, there are no maps displayed. It actually says in the logcat authentication error, I'm not sure how this is possible because there isn't any authentication error when running on newer devices.
The code used is from this library
https://github.com/NyxDigital/NiceSupportMapFragment/blob/master/src/com/NYXDigital/NiceSupportMapFragment.java
In the services section of the Google API's console Google Maps Android API v2 only is set on.
The authentication error I think is unusual as there isn't an issue with the newer devices.
If anyone has come across this before I'd appreciate it you could offer some advice
EDIT ---- THIS PHONE IS RUNNING 2.2.2
This may be a duplicate issue of some other API V2 authentication error questions questions please see:
Android Google Maps V2 authentication error
and
Google Maps API V2 - always get authentication error
For anyone that might come across this issue in future...
This line
holder.setFormat(PixelFormat.RGB_888);
of the git hub library code was preventing the map from being displayed, it wasn't anything to do with authorization. The authorization issue was that I wasn't using the correct debug key, but when I had sorted this issue, the maps not displaying was still causing hassle.
So after much debugging and commenting of code, I discovered that the above line is the culprit. So I added a simple check and it's sorted
I had working code showing my location on a nice little google map. with out changing any map code suddenly the map is completely blank (a grey grey square) thats it..
using google map api for android v2. all set up with an api key and everything.. it was working!
This can happen for a few reasons. Did you sign this version of the application with a different certificate? Are you sure your device has an internet connection? You can also check the logs as Google Maps usually spams a bunch of information about why it is unable to connect. I run into this issue sometimes when my phone is running internet through a proxy, you might want to check that as well.
I have to display Google Map in my android app
I followed the tutorial on android.com for this, obtaining MAP API keys & all.
Now the problem is : earlier it was working fine and maps were displayed properly but now since a few days, We cannt see the map. When it launches it shows the markers over it but the background is blank, only the boxes are appearing. Can someone please tell what's happening .
Thanks.
Either:
You have the wrong Maps API key for your signing key, or
The device or emulator does not have Internet access, or
You got rid of the INTERNET permission, or
Something else is blocking your app's access to the Maps servers (e.g., firewall)