system.openURL for maps.google.com getting Waze instead (Android)

Hi,

This may be a more general Android (not Corona) question, but …

My app is doing:

   system.openURL ("http://maps.google.com/maps?z=12&saddr=37.31665048,-122.02152582&daddr=34.066741,-118.401541&directionsmode=driving")

…and the Waze app is getting opened instead of Google maps (or the browser pointing to google maps).

If I remove any (?) hint of directions, and do:

   system.openURL ("http://maps.google.com/maps?z=12&daddr=34.066741,-118.401541")

I still get Waze.

If I do:

   system.openURL (“comgooglemaps://?center=37.319552,-122.031674&zoom=14&views=traffic”)

I get a Google map (as embedded window/graphic, not a browser), but the zoom seems to be ignored (and, I think, traffic is ignored)

Hmm…the *second* and subsequent calls to comgooglemaps get a properly zoomed in inset map.  Only the first call gets the non-zoomed map.  Weird.  Repeatable.

I said this might be a more general Android question, because I’ve noticed that another app, Discord,

seems to frequently open its map in Waze instead of Google Maps.

Android 8; Samsung Galaxy S7

thanks,

Stan

I think you have defaulted your maps application to Waze. On google you’ll find a million solutions based on the particular version of Android the easiest way might be just to uninstall Waze from your phone.

@agramonte : although I suspected that, and have googled for a solution for it, I’ve found no solution other than removing Waze, which I’m loathe to do.

That aside, I consider it an Android bug if I specifically ask for “maps.google.com” and get Waze. 

If I’d asked for something like “mapping::”, yeah, I’d expect my configured “default” mapping software to be invoked. 

There’s a profound difference between the two concepts (a lot like emailing the mayor (John Doe) of a city: john_doe@city.org vs mayor@city.org … one’s a specific person, one’s a role/job).  That’s why I need to be CTO of a lot of companies :slight_smile:

thanks,

Stan