btcmap.org icon indicating copy to clipboard operation
btcmap.org copied to clipboard

Navigate icon does not work on MacOS, iOS, iPadOS

Open alltheseas opened this issue 1 year ago • 11 comments

Describe the bug PWA Safari iOS Navigate does not work

To Reproduce

  1. go to Btcmap.org/map
  2. Tap navigate on any listed business

Expected behavior

Open up default navigation app on device (e.g. apple maps, google maps etc)

Screenshots image

Additional context

alltheseas avatar Jun 27 '23 01:06 alltheseas

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?

secondl1ght avatar Jun 27 '23 05:06 secondl1ght

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?

secondl1ght avatar Jun 27 '23 05:06 secondl1ght

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/

alltheseas avatar Jun 27 '23 15:06 alltheseas

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...

secondl1ght avatar Jun 27 '23 17:06 secondl1ght

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: @.***>

dadofsambonzuki avatar Jun 27 '23 17:06 dadofsambonzuki

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:

image

image

alltheseas avatar Jun 27 '23 20:06 alltheseas

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?

secondl1ght avatar Jun 27 '23 20:06 secondl1ght

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" Screenshot 2023-06-27 at 4 06 07 PM

Safari browser Navigate: Screenshot 2023-06-27 at 4 07 02 PM Share->Navigate Screenshot 2023-06-27 at 4 07 23 PM

Brave browser has same behavior as Firefox browser Screenshot 2023-06-27 at 4 08 22 PM

alltheseas avatar Jun 27 '23 21:06 alltheseas

Safari on iPadOS exhibits same behavior as MacOS

alltheseas avatar Jun 27 '23 21:06 alltheseas

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.

secondl1ght avatar Jun 27 '23 21:06 secondl1ght

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.

alltheseas avatar Jun 27 '23 21:06 alltheseas