Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not install Launch Navigator plugin. Asking for google api key

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?

like image 548
Fernando gonzalez-burgos roche Avatar asked Dec 07 '25 06:12

Fernando gonzalez-burgos roche


1 Answers

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

like image 74
Sayed Mohd Ali Avatar answered Dec 09 '25 20:12

Sayed Mohd Ali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!