-
Notifications
You must be signed in to change notification settings - Fork 918
Phonegap Usage
The phonegap-googlemaps-plugin installation requires the "--variables" parameter to embed the Google Maps API key into your project. However, the PhoneGap CLI does not accept the --variable parameter.
$> phonegap create MapTest com.example.map MapTest
$> cd MapTest
$> phonegap build android
$> phonegap plugin add plugin.google.maps --variable API_KEY_FOR_ANDROID="key"
[phonegap] adding the plugin: plugin.google.maps
[Error: Variable(s) missing: API_KEY_FOR_ANDROID]
[error] Variable(s) missing: API_KEY_FOR_ANDROID
For the solution, please use the Cordova CLI for this plugin installation.
$> phonegap create MapTest com.example.map MapTest
$> cd MapTest
$> phonegap build android
$> cordova plugin add plugin.google.maps --variable API_KEY_FOR_ANDROID="key"
$> phonegap plugin list
[phonegap] com.google.playservices
[phonegap] plugin.google.maps
$>phonegap install android
##PhoneGap Build is not available PhoneGap Build does not allow to use native binaries, such as jar file. This plugin is not available on PhoneGap build, because this plugin uses those native libraries, Google Maps Android API v2 and Google Maps iOS SDK. Only works on PhoneGap local build.
If you get an error, feel free to ask me on the official community or the issue list.
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md
New versions will be announced through the official community. Stay tune!
Feel free to ask me on the issues tracker.
Or on the official community is also welcome!
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md