Hello everyone !
I am trying to make a small app with google maps but somehow I can’t make them to work. I generated an API token added the plugin did a complete copy/paste from the docs but the map is blank with the Google logo on bottom left.
Here is a screenshot from my device(Galaxy S4 with Android 6) : Screenshot
And here is what it says in the chrome debugger: Uncaught TypeError: ele.hasAttribute is not a function
I am not sure what to do but I hope that there is a solution. I saw that they worked in the Ionic 2 Native app in the play store but not sure what I am doing wrong.
In here user aditya_1027 answered the question but he/she is not using the Ionic Native Google Maps. He/She is using the Script tag for the google maps .
I tested this solution and it is working but the Native one is not working.
Not sure if its related but I have an issue with a plugin, ‘cordova-plugin-network-information’. It will not install on my device even though i have added it to the platform and can find it in my plugin-ins directory.
Try checking the console on your device to see if there are any errors.
I had the problem with Google Maps Native (I tested on Android only), tried everything, and I always had the blank Google Map screen, just with the logo at the bottom right. In the Google API Console I did not see and requests coming in.
Now: One day later it just works! I did not change anything - it looks like after creating a Google Android API key it just takes a little while until it works.