-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map not showing its shows blank screen. #86
Comments
For me that has happened in a few circumstances. First, make sure you have a live internet connection within the app, otherwise it can't download maps. Next, make sure the app itself hasn't frozen, crashed, or been paused for some reason. Can you verify it's working using other UI components? Third, I would double check you have a valid API key for the correct platform, in the correct format. I don't mean to question what you've done, but I've messed that up and seen the exact result you describe. |
Try viewing the android logs ( |
I have the same problem here. Something in particular to search for on the logs? |
Look in the android logcat, see if there is anything related to google services api. If you're on an old android device, there is a known issue with Android 4.2.2: #7 |
This is logcat...
|
Looks like an issue with your API key:
|
But the key I'm using already functions normally in other apps .. |
Do you have |
Sorry @dapriett really was it, I was using a JavaScript API Key. |
|
Glad it worked, good luck. |
Adding another point that solved my scenario:
It was different in my case as I used the generate api link present in auto-generated google_maps_api.xml, which apparently gave a wrong package name, and hence the package name mentioned in the logcat was the correct one and on updating the package name in google developer console, it worked. |
helpful thread |
I have the same issue, how can i check the API key being used is correct or not. Gmap = mapView.getMap(); should be replaced with getMapAsync() as it is precoded. I have created another key but still map do not appear ..just it is as google and blank |
Run the app while your device is connected to android studio, then check logcat for fingerprint:package_name, you can search for it and check the API key and package name from there |
it helped me solve my problem please pay attention to the package name |
The map isn't showing up in my application. The map view has the Google logo on the bottom left, but it's otherwise blank. I tried removing and re-adding the plugin, but that didn't work either.
So i tried removed and added in the plugin but not worked.These below commands i used...
tns remove nativescript-google-maps-sdk
tns add nativescript-google-maps-sdk
The API key is specified in the proper file according to the instructions, so that's definitely not the issue.
The text was updated successfully, but these errors were encountered: