organicmaps / organicmaps.github.io

Official Organic Maps website source code. Please contribute your translations!
Apache License 2.0
34 stars 33 forks source link

Google Play, Huawei Appgallery links doesn't work at https://organicmaps.app/support-us/ in desktop browser #21

Open dbf256 opened 2 years ago

dbf256 commented 2 years ago
<a href="market://details?id=app.organicmaps">Google Play</a>,
<a href="appmarket://details?id=app.organicmaps">Huawei Appgallery</a>

It is handled by mobile browser, but doesn't work on a desktop, maybe add some fallback?

biodranik commented 10 months ago

A JS code that detects desktops (is it already on the site?) and replaces links with something else?

reinhart1010 commented 10 months ago

Is there a reason for not using web URLs (e.g. https://play.google.com/) in the first place?

biodranik commented 10 months ago

Do web urls open reviews exactly in the same way as market urls?

reinhart1010 commented 10 months ago

The market:// and appmarket:// urls are actually URIs which do not correspond to an Internet service (e.g. Google Play or OpenStreetMap), and it means different OSes will intepret how these links are handled.

In Android, Google Play Store and F-Droid are some of the apps that can open and intepret the market:// URIs. But others like Windows and iOS will look for installed apps that can open and interpret this URI, and if there isn't one, they will fail.

Replacing these links to web URLs (like https://play.google.com) will do, and speaking of privacy, users of these app stores should not bother with the change as they already accepted the terms in their respective app store apps.

biodranik commented 9 months ago

What is actually needed:

  1. Show market:// and other URL schemes only to android users.
  2. Show https:// links for all other operating systems.

Can you please help to implement that?

biodranik commented 9 months ago

Check the JS example at this page (see at the bottom): https://omaps.app/api