You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the info.plist, it includes hereunder, <key>LSApplicationQueriesSchemes</key> <array> ... <string>comgooglemaps</string> ... </array>
window.location.href="comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving";
The message "Failed to load webpage with error: unsupported URL" was in Xcode and it failed to launch google map app.
But I copied "comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving" and pasted it in safari.
It works.( It notify us whether the google map app shall be launched or not. if ok, the google map app is launched...)
Any further settings are required?
What is expected to happen?
window.location.href="comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving";
and launch the google map app
What does actually happen?
Information
Command or Code
Environment, Platform, Device
IPHONE 12
ios 17.5.1
Version information
9.0.0 (cordova-lib@9.0.1)
Checklist
I searched for existing GitHub issues
I updated all Cordova tooling to most recent version
I included all the necessary information above
The text was updated successfully, but these errors were encountered:
The behaviour for launching other apps from URLs is complicated and inconsistent. I suspect this might be due to trying to open it via JavaScript with window.location.href.
@75341704 Out of curiosity, if you add a link to your app with the Google Maps URL and tap it, does it launch the map app properly?
Something like this:
<ahref="comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving">Test link to open map</a>
Bug Report
Problem
In the info.plist, it includes hereunder,
<key>LSApplicationQueriesSchemes</key> <array> ... <string>comgooglemaps</string> ... </array>
window.location.href="comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving";
The message "Failed to load webpage with error: unsupported URL" was in Xcode and it failed to launch google map app.
But I copied "comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving" and pasted it in safari.
It works.( It notify us whether the google map app shall be launched or not. if ok, the google map app is launched...)
Any further settings are required?
What is expected to happen?
window.location.href="comgooglemaps://?saddr=28,120&daddr=31,121&directionsmode=driving";
and launch the google map app
What does actually happen?
Information
Command or Code
Environment, Platform, Device
IPHONE 12
ios 17.5.1
Version information
9.0.0 (cordova-lib@9.0.1)
Checklist
The text was updated successfully, but these errors were encountered: