cordova-plugin-googlemaps: Unable to get property 'google' of undefined or null reference cordova-plugin-googlemaps

running:

$> cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="..."  --variable API_KEY_FOR_IOS="..."

config.xml

<plugin name="cordova-plugin-googlemaps" spec="^2.3.10">
       <variable name="API_KEY_FOR_ANDROID" value="XXXXXXXXXXXXXXX" />
       <variable name="API_KEY_FOR_IOS" value="XXXXXXXXXXXXXXX" />
       <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="This app wants to get your location while this app runs only." />
       <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="This app wants to get your location always, even this app runs in background." />
   </plugin>

Error:

Cannot read property ‘google’ of undefined

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (13 by maintainers)

Most upvoted comments

Code Complete:

https://github.com/mMarcos208/CordovaMaps

Run: $npm install

$cd src-cordova $npm install $cd .. $quasar build -m cordova -T android $cd src-cordova $cordova run browser

Note: Maps is not installed.