Tech
How to open Google Maps in turn-by-turn navigation mode from a PWA (Android)
The next attempt was the standard Maps URL:
window . open ( `https://maps.google.com/maps?daddr= ${ lat } , ${ lng } ` , ' _blank ' );
This opens Maps, but in the browser — not the app. And it shows the route preview, not turn-by-turn navigation.
What worked: Android Intent URLs
Android supports a special URL scheme that tells Chrome to launch a native app directly:
window . location . href = `intent://navigation/now?ll= ${ ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to