I am trying to install the launch-navigator plugin into ionic4 framework: https://ionicframework.com/docs/native/launch-navigator
It is failing with exit code 1. In the stack I find the following:
Failed to install 'uk.co.workingedge.phonegap.plugin.launchnavigator': Error: Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID
¿Can it be installed without the API key? ¿Why does it needs the API key?
What I want to achieve is to launch google maps (or other navigation app) with given coordinates so I can provide a way to navigate from the current GPS position to the given coordinates position.
¿Any suggestions or workarounds?
use this command to install it smoothly.
ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator --variable GOOGLE_API_KEY_FOR_ANDROID="{your_api_key_here}"
if you don't have Google API key then
follow google map API documentation...
https://developers.google.com/maps/documentation/javascript/get-api-key
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With