capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.
https://capacitor-community.github.io/google-maps/
MIT License
152 stars 64 forks source link

Google Maps draws blank on iOS #184

Closed alappe closed 2 years ago

alappe commented 2 years ago

Describe the bug The rendered map stays completely blank on iOS, works in web.

To Reproduce https://github.com/alappe/capacitor_map_example should show the example. One needs to add an API key with iOS Maps SDK enabled , mine is missing the credit card for now.

Expected behavior I'd expect to see a map on iOS.

Screenshots

Additional context Tested on a real device, not simulator.

tafelnl commented 2 years ago

iOS Maps SDK enabled, mine is missing the credit card for now

As stated in the docs you need an active billing account. So likely that is what is going wrong here.

alappe commented 2 years ago

Thanks tafeln,

since the web version shows me a message that the billing is missing but works fine I asked around in Slack and somebody there told me that the native version should behave exactly the same. I will add billing and then close the issue if this solves it.

alappe commented 2 years ago

Adding billing to my account changed the web version to fully functional, whereas the iOS version stays blank. So this was not the issue.

tafelnl commented 2 years ago

I am sorry that this does not fix it for you. But this is not Stack Overflow or Slack. This issue tracker is meant for bugs or feature requests. It does not seem like you are experiencing a bug. Please read through the documentation and the issues and see if you can find something that helps you. If you followed all the steps from the docs carefully and are still experiencing issues, please create an issue with your findings of what you already tried. Even better would be a minimal code reproduction, so we can actually see what's going on.

alappe commented 2 years ago

That's why I included the minimal code example linked in my issue description.

tafelnl commented 2 years ago

I am sorry. I see that now. You are using a different package. You have installed https://www.npmjs.com/package/@capacitor/google-maps instead of https://www.npmjs.com/package/@capacitor-community/google-maps . Those are 2 different packages.

alappe commented 2 years ago

Oh, sorry – I missed that. Thank you for this hint – I'll simply try @capacitor-community/google-maps then.