Ionic-native-google-maps: ionic v5?

Created on 15 Jan 2021  路  3Comments  路  Source: ionic-team/ionic-native-google-maps

Hi. I'm trying to get this working in the latest version of Ionic and i'm struggling at the first hurdle. Does this plugin work on a v5 Capacitor project? If so where should the API key go? (In v5 it seems that this Config.xml is a generated file). It looks like all the existing documentation is for v4 and below. Thanks for any help.

Nick

All 3 comments

Current version doesn't work on capacitor

@nick-kisanhub I'm using it on ionic 5, and you can still use Cordova. But choosing cordova means you can't use capacitor. I believe that @wf9a5m75 working on the Capacitor version which is driven by donations.

this plugin works on capacitor ionic?? if so, how should i install it? Because when I do install these packages:

"@ionic-native/google-maps": "^5.5.0",
"@ionic-native/native-geocoder": "^5.31.1",
"cordova-plugin-googlemaps": "^2.6.2",
"cordova-plugin-nativegeocoder": "^3.4.1",

Then on Android studio I can't generate the .apk. It gives me a lot of errors. 
But if I don't include   "cordova-plugin-googlemaps": "^2.6.2",   I can generate the .apk. The problem is that the map on the APP displays a message ->  "Error: [GoogleMaps]cordova-plugin-googlemaps is not installed or not ready yet." When I create the map with "GoogleMaps.create"
Was this page helpful?
0 / 5 - 0 ratings