pikaju / flutter-maps-launcher

Simple Flutter package to open the maps application (or browser) on all platforms.
https://pub.dev/packages/maps_launcher
MIT License
60 stars 43 forks source link

Error launching Waze app #21

Closed SamTobias closed 1 year ago

SamTobias commented 2 years ago

Description: Package doesn't work for Waze app, both query and coordinates opens Waze but shows an error dialog.

image

How to reproduce: Run example app on Android and launch query or coordinates then select Waze app.

Tested with version 2.0.1 on Android 9 with Waze installed

SamTobias commented 2 years ago

Changing this line https://github.com/pikaju/flutter-maps-launcher/blob/05bb182a996c68652dc34eccd0a2081aee0224c2/lib/maps_launcher.dart#L43

to this

uri = Uri.parse('geo:$latitude,$longitude?q=$query');

seems to fix issue for launchCoordinates, because apparently Waze needs to receive coordinates after "geo:", but the issue still remains for launchQuery

pikaju commented 1 year ago

Hey, I'm wondering if this issue still exists a year later?

An argument could be made that this is an issue on Waze' side. The Android documentation has a clear example that uses geo:0,0: https://developers.google.com/maps/documentation/urls/android-intents#search-for-a-location

I'll close it for now, please reopen if the issue persists.