Ionic-native-google-maps: Cordova can't install Google Maps for iOS

Created on 14 Jun 2019  Â·  6Comments  Â·  Source: ionic-team/ionic-native-google-maps

I'm submitting a ... (check one with "x")

  • [ ] question
  • [x] any problem or bug report
  • [ ] feature request

If you choose 'problem or bug report', please select OS: (check one with "x")

  • [ ] Android
  • [x] iOS
  • [ ] Browser

cordova information: (run $> cordova plugin list)

call-number 0.0.2 "Cordova Call Number Plugin"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 4.2.1 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.3.3 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.3.0 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.3 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

"@ionic-native/core": "^4.11.0",
"@ionic-native/google-maps": "^4.21.0",

Current behavior:
Cordova can't install the GoogleMaps plugin. I know this is happening due to my cordova version, but, if i upgrade it, will not it break my project?

â•°> ionic cordova platform add ios

> cordova platform add ios --save
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
    Path: platforms/ios
    Package: py.com.infoparaguay.infoparaguay
    Name: infoParaguay
iOS project created with [email protected]
Installing "call-number" for ios
Installing "cordova-plugin-datepicker" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-facebook4" for ios
Installing "cordova-plugin-geolocation" for ios
Installing "cordova-plugin-googlemaps" for ios
Plugin doesn't support this project's cordova-ios version. cordova-ios: 4.5.5, failed version requirement: >=5.0.0
Skipping 'cordova-plugin-googlemaps' for ios
Installing "cordova-plugin-inappbrowser" for ios
Installing "cordova-plugin-ionic-keyboard" for ios
Installing "cordova-plugin-ionic-webview" for ios
Installing "cordova-plugin-request-location-accuracy" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-plugin-x-socialsharing" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Installing "es6-promise-plugin" for ios
Dependent plugin "es6-promise-plugin" already installed on ios.
Discovered plugin "mx.ferreyra.callnumber" in config.xml. Adding it to the project
Plugin "call-number" already installed on android.
Plugin "call-number" already installed on browser.
Plugin "call-number" already installed on ios.
Adding call-number to package.json
Saved plugin info for "call-number" to config.xml
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
> ionic cordova resources ios --force
✔ Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
(node:37646) ExperimentalWarning: The http2 module is an experimental API.
✔ Uploading source images to prepare for transformations: 2 / 2 complete - done!
✔ Generating platform resources: 32 / 32 complete - done!
✔ Modifying config.xml to add new image resources - done!

I'll be thankful if someone can help me with this problem.
Thanks in advance, sorry if i have a bad English.
Greetings from Paraguay!

Most helpful comment

Try
ionic cordova platform remove ios
followed by
ionic cordova platform add ios
or
ionic cordova platform add [email protected]

if you really want to specify cordova-ios version

All 6 comments

Please remove cordova-ios, then reinstall cordova-ios@5

It works! Thank you so much.

Hello, if Cordova is updated to the latest version
"npm install -g cordova @ latest" the application builds success, but when it runs it does not leave the SplashScreen. can not google maps be used for lower versions of cordova 9.0.0?

`Ionic:

Ionic CLI : 5.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 8.1.2 ([email protected])
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-webview 2.5.1, (and 23 other plugins)

Utility:

cordova-res : 0.3.0 (update available: 0.5.2)
native-run : 0.2.5 (update available: 0.2.7)

System:

Android SDK Tools : 26.1.1
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.16.0 (/usr/local/bin/node)
npm : 6.9.2
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001`

It works! Thank you so much.

Hey I am also having the same problem.
Ionic Version - 3.9.2
Cordova Version - 8.0.0

Now to update cordova-ios what i did is
npm uninstall cordova-ios
npm install [email protected]

and still when i do cordova platform list. I am getting [email protected]

Try
ionic cordova platform remove ios
followed by
ionic cordova platform add ios
or
ionic cordova platform add [email protected]

if you really want to specify cordova-ios version

No longer support for ionic 3, because Google Maps SDK for iOS requires iOS10 at least.

Was this page helpful?
0 / 5 - 0 ratings