organicmaps.github.io
organicmaps.github.io copied to clipboard
Google Play, Huawei Appgallery links doesn't work at https://organicmaps.app/support-us/ in desktop browser
<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?
A JS code that detects desktops (is it already on the site?) and replaces links with something else?
Is there a reason for not using web URLs (e.g. https://play.google.com/) in the first place?
Do web urls open reviews exactly in the same way as market urls?
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.
What is actually needed:
- Show market:// and other URL schemes only to android users.
- Show https:// links for all other operating systems.
Can you please help to implement that?
Check the JS example at this page (see at the bottom): https://omaps.app/api