Skip to content
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

Blank map with 2.3.3 #2276

Closed
piernik opened this issue May 21, 2018 · 10 comments
Closed

Blank map with 2.3.3 #2276

piernik opened this issue May 21, 2018 · 10 comments
Labels

Comments

@piernik
Copy link

piernik commented May 21, 2018

I'm using:

"cordova-plugin-googlemaps": "^2.3.3",
"@ionic-native/google-maps": "^4.8.2",
"@ionic-native/core": "^4.7.0",
"cordova-android": "7.0.0",

I tried Your 2.2.9 and had issue with markers. Now I deleted old version ionic cordova plugin remove cordova-plugin-googlemaps and installed new with ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="THE_SAME_KEY".
Also deleted and add android platform.

I don't have any restrictions on key:
google-maps-api

Map is gray. Markers are working. In debug console I have no error.
What can be wrong? Do I need to add something else?

google-maps-api2

@StobyWan
Copy link

StobyWan commented May 21, 2018

I am having same problem. My occurrences of MAP_READY are not firing on android 4.4.4 and 4.4.2 that I have found. There was another issue that was closed but I had followed the steps to update your google services to 15.0.1 but this had no effect for me.

I have this in place with no avail. Please reconsider this issue as I have not found a resolution.
I have an example app up here that need your own keys but should demonstrate the bug.
https://github.com/StobyWan/g-maps-test

had to update it ( a few times ) but its good now.
I continue to never have the MAP_READY event called with minsdk at 19 on android 4.4.x

@wf9a5m75
Copy link
Member

wf9a5m75 commented May 21, 2018

I don't accept spam zip file. Please share your project files on GitHub.

@wf9a5m75
Copy link
Member

@StobyWan I just built your project files, and run it on Android 4.4.4.
2276

@wf9a5m75
Copy link
Member

@piernik >Map is gray.
This mean your api key is not allow to use Google Maps Android API v2. Regenerate your api key.

@piernik
Copy link
Author

piernik commented May 21, 2018

I did generated new API key - the same result.
You're saying Google Maps Android API v2. I can't see it. I'm using Maps SDK for Android. I think it's the same think, right?
Tomorrow I'll try clean install with new key.

@StobyWan
Copy link

StobyWan commented May 21, 2018

My api 19 has android 4.4.2 as well were you able to run on this version? I see your is 4.4.4

image
what else could i be doing wrong? here the code is exactly the same just running on to versions 8.1.0 API 27 works perfectly.
4.4.42 API 19 does not...
is there anything I could be missing?

@wf9a5m75
Copy link
Member

wf9a5m75 commented May 21, 2018

I don't have Android 4.4.2 device, but should work.
By the way, nobody use such an old device anymore except developers.

@piernik
Copy link
Author

piernik commented May 21, 2018

@wf9a5m75 Google Maps Android API v2 and Maps SDK for Android are the same thing- right?

@wf9a5m75
Copy link
Member

Yes, but you have to enable it BEFORE generate your api key.

@piernik
Copy link
Author

piernik commented May 22, 2018

I figured it out. Key was correct.
I did a clean install and I noticed that it didn't have "PLAY_SERVICES_VERSION": "15.0.1", "ANDROID_SUPPORT_V4_VERSION": "26.1.0" lines in package.json. So I first deleted platform folder, added Your plugin and added android platform.
New commands disapeared from package.json and now it's working as it should.

Thank for help.

@piernik piernik closed this as completed May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants