Ionic 2 Google map plugin error


#1

Hi guys. I downloaded the demo of Ionic 2 cutePuppyPics and tried to install the google maps plugin, as described in this tutorial: http://ionicframework.com/docs/v2/native/google-maps/
But at the end of the installation I get the following error:

Error: Uh oh!
Cannot find resource file “C:\projects\Angular2\cutePuppyPics\plugins\com.googlemaps.ios\Maps\Frameworks\GoogleMaps.framework\Versions\A\Resources\GoogleMaps.bundle” for plugin com.googlemaps.ios in iOS platform

Below is a screen of my project structure:

If I run the project and try to open a page with the gogole map, I get the following error:

When I try to install

ionic plugin add plugin.google.maps.Map

i get the error:

Error: Registry returned 404 for GET on https://registry.npmjs.org/plugin.google.maps.Map

Any idea in what could be problem?


#2

try this:

ionic plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=“YOUR_ANDROID_API_KEY_IS_HERE” --variable API_KEY_FOR_IOS=“YOUR_IOS_API_KEY_IS_HERE”

you can find more informations here:

P.S: Sometimes it is enough to use the Maps Embed API:


#3

The error that I have described above, occurred after this command

ionic plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=“YOUR_ANDROID_API_KEY_IS_HERE” --variable API_KEY_FOR_IOS=“YOUR_IOS_API_KEY_IS_HERE”,


#4

sorry i thought it was simply a wrong plugin.

I have some questions:
1.
At your first picture i can see your project path is like “C:…” so i think you run this at a windows pc.
-> How did you add the ios platform at the windows pc, i thougt it is only possible on a mac?

  1. From witch platform is the Error at the 3rd picture?

#5

All errors from Windows 10

How did you add the ios platform at the windows pc, i thougt it is only possible on a mac?

Just use the command

ionic platform add ios

I can add ios platform on the Windows, but I can’t use

ionic build ios


#6

You cant use the nativ maps plugin with windows it is only for android and ios.

It seems that you add the plugin for android successful. Have you tried it with an android device?


#7

Thank you! ) downloaded to my phone, an application to run successfully.
Now I know that the native android components don’t work in the windows browser : ))