btcmap.org
btcmap.org copied to clipboard
Navigate icon does not work on MacOS, iOS, iPadOS
Describe the bug PWA Safari iOS Navigate does not work
To Reproduce
- go to Btcmap.org/map
- Tap navigate on any listed business
Expected behavior
Open up default navigation app on device (e.g. apple maps, google maps etc)
Screenshots
Additional context
Hi @alltheseas thanks for the report, we use the geo URI link scheme to pass the location coordinates off to any compatible installed app on the device. I would have thought Apple Maps would recognise this standard but maybe they don't. Is that the maps app you are using?
Actually based on this error message it looks like Safari doesn't even try to pass the geo URI on to any other apps... classic Apple not using an open standard XD. Maybe for iOS users we should just use an Apple Maps link?
Yes, seems like gmaps cannot be set as default on iOS, so apple maps link would be the safe bet.
https://www.alphr.com/set-google-maps-default-iphone/
Actually this is a Safari specific issue, so if a user was using Brave browser on iOS for example then the Navigate links would work. So maybe we should only default to Apple Maps if a user is using Safari...
Also, the navigate function on Android/Brave opens the mapping app of your choosing zoomed to the location, but doesn't initiate the navigate to feature, in fact there is no destination pin.
On Tue, 27 Jun 2023, 18:13 secondl1ght, @.***> wrote:
Actually this is a Safari specific issue, so if a user was using Brave browser on iOS for example then the Navigate links would work. So maybe we should only default to Apple Maps if a user is using Safari...
— Reply to this email directly, view it on GitHub https://github.com/teambtcmap/btcmap.org/issues/103#issuecomment-1609923782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUYWY7MRCU72NEY2GOEWJ2LXNMIFFANCNFSM6AAAAAAZU5HQKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Actually this is a Safari specific issue, so if a user was using Brave browser on iOS for example then the Navigate links would work. So maybe we should only default to Apple Maps if a user is using Safari...
Here is the brave browser behavior on iOS:
Thanks for testing - so it seems iOS in general doesn't support geo URI's (unless you need to specify a default application to open these types of links, but any mapping app you have on your phone should do this by default I would think). Do you have a Mac desktop we could also test on?
MacOS:
Firefox browser
-> Navigate does not do anything (no error message, nothing)
-> Share -> Navigate opens a new tab with e.g. geo:-29.8558861,31.0268087 that states "This address was not understood"
Safari browser
Navigate:
Share->Navigate
Brave browser has same behavior as Firefox browser
Safari on iPadOS exhibits same behavior as MacOS
Entering the geo URI into the browser URL won't work - it works by if an application on your computer is listening for geo URI events coming from another application. But I think you've confirmed that it doesn't work on iOS or Mac, so we should use a regular Apple Maps or OpenStreetMap navigate URL for Apple users.
Entering the geo URI into the browser URL won't work
To be clear, I did not manually enter any URL. I simply clicked on the Navigate button.
I think you've confirmed that it doesn't work on iOS or Mac
Correct, and navigate does not work on the iPad either.