Install Google Maps SDK for iOS v2.7.0 to v3.1.0 to
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.6.1-beta-20190423-1048" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.6.1-beta-20190423-1219" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="Promise" src="www/Promise.js" />
<asset src="www/promise-7.0.4.min.js.map" target="promise-7.0.4.min.js.map" />
</array>
</config-file>
- <preference name="GOOGLE_MAPS_SDK_FOR_IOS_VERSION" default="3.1.0"/>
- <framework src="GoogleMaps" type="podspec" spec="~> ${GOOGLE_MAPS_SDK_FOR_IOS_VERSION}" />
+ <framework src="GoogleMaps" type="podspec" spec="~> 2.7.0" />
+ <podspec>
+ <config>
+ <source url="https://github.com/CocoaPods/Specs.git"/>
+ </config>
+ <pods>
+ <pod name="GoogleMaps" spec="~> 3.1.0"/>
+ </pods>
+ </podspec>
<hook type="before_platform_add" src="src/ios/check_sdk_version.js"/>
<hook type="before_plugin_install" src="src/ios/check_sdk_version.js"/>

Install Google Maps SDK for iOS v2.7.0 to ios@4.4, v3.1.0 to ios@5.x  #2594