Automatic uninstalling com.googlemaps.ios plugin


#1

in ios, I’m trying to add ios platform using ionic cordova platform add ios then i got this message in adding ios platform

Installing "cordova-plugin-googlemaps" for ios

--[cordova-plugin-googlemaps]------------------------
From version 2.4.5, the cordova-plugin-googlemaps uses CocoaPod.
No longer necessary com.googlemaps.ios plugin.
Automatic uninstalling com.googlemaps.ios plugin...
-----------------------------------------------------

      Official document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.3.0/README.md

then i checked the plugins using cordova-check-plugins
and the output was up to date

plugin: cordova-plugin-googlemaps
source: npm://cordova-plugin-googlemaps@^2.4.1
installed version: 2.4.6
remote version: 2.4.6

i tried to reinstall it again but still getting the same massage


#2
$> cordova plugin list

#3
bash: /library/java_home: No such file or directory
AnspireAgencys-iMac:Doctory anspireagency$ cordova plugin list
call-number 0.0.2 "Cordova Call Number Plugin"
cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-facebook4 2.5.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 2.4.0 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
uk.co.workingedge.phonegap.plugin.launchnavigator 4.2.2 "Launch Navigator"

#4

You have it there tho:

cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"

#5

yeah i see it but i got this error in developer inspector when i try the emulator


#6

try removing the plugin with ionic cordova plugin rm cordova-plugin-googlemaps (if it says it is not installed then delete it from your package.json

then add this to your package.json:


    "cordova-plugin-googlemaps": "2.2.2",
    "cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git#2.7.0",

and then delete the Platforms and Plugins folders and then try again to add iOS


#7

I tried what you say and still getting the message

Discovered plugin "cordova-plugin-googlemaps" in config.xml. Adding it to the project

Installing "cordova-plugin-googlemaps" for ios

--[cordova-plugin-googlemaps]------------------------
From version 2.4.5, the cordova-plugin-googlemaps uses CocoaPod.
No longer necessary com.googlemaps.ios plugin.
Automatic uninstalling com.googlemaps.ios plugin...
-----------------------------------------------------

      Official document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.3.0/README.md Please consider to buy a beer for us 🍺 https://github.com/mapsplugin/cordova-plugin-googlemaps#buy-us-a-beer


Adding cordova-plugin-googlemaps to package.json

Saved plugin info for "cordova-plugin-googlemaps" to config.xml

#8

It’s not using what i put in previous post, notice how it says From version 2.4.5 while the one I posted is 2.2.2


#9

i did what you say and now I’m getting this


the maps working fine in android only


#10

Check out this post. I tried this and it worked for me.