mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 918 forks source link

Google Maps app is not installed or disabled error #2912

Open Filavision opened 2 years ago

Filavision commented 2 years ago

I'm submitting a ... (check one with "x")

OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-admob-sdk 0.24.1 "AdMob SDK"
cordova-plugin-admob-free 0.27.0 "Cordova AdMob Plugin"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-device 2.1.0 "Device"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-inapppurchase-2 1.3.0 "In App Purchase"
cordova-plugin-splashscreen 6.0.2 "Splashscreen"
cordova-plugin-statusbar 3.0.0 "StatusBar"
cordova-promise-polyfill 0.0.2 "cordova-promise-polyfill"
nl.madebymark.share 0.1.1 "Share"

Current behavior: Can't open Google Maps App from plugin to navigate

Expected behavior: Google Maps App should open

Screen capture or video record: https://user-images.githubusercontent.com/6918514/186893490-84fbf377-5022-4df7-a362-912bf29b5fd3.mp4

The plugin tries to open "Google Maps" but the App called "Maps" now and i don't find a way to change the name.

mirkomartino commented 2 years ago

You can temporarily overcome the problem by natively calling the uri

window.open("geo:"+addressLongLat);