I need to open default map app of device (ios, windows phone, android) with 1 link.
When user click in a marker there is the message “Open Google Map”… And it should open the navigator with directions and it should start!
The Launch Navigator plugin is what you’re looking for : https://ionicframework.com/docs/native/launch-navigator/
Yes, this Launch Navigator plugin is the best I’ve seen!
@jamesharvey it is giving error like: google_api_key_missing, If any ways to resolve it, please let me know. Thanks in advance.
If you are trying to install the plugin using below command (ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator)
and getting error something like “Failed to install ‘uk.co.workingedge.phonegap.plugin.launchnavigator’: Error: Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID”
Then you need to update you command by adding a variable just like it error saying. i.e.
Right Command: ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator --variable GOOGLE_API_KEY_FOR_ANDROID="{your_api_key_here}"
Thanks! working well.
Good you have sorted it out. (y)