I have three buttons on my website that link to Facebook, Twitter and vk.com. I want to open a native application if it is installed on a user device. Otherwise, I want the URL response to be open.
First of all, I tried to use native application schemes directly with the deep-link.js plugin . But, when I tried to open the URL scheme of the native application when the native application was not installed, Safari showed an error, but finally opened the URL rollback page. By default, the Android browser said that it did not know how to handle such a URL scheme:
<a class="btn btn-primary" href="https://www.facebook.com/warpcompany" data-app-ios="fb://profile/838619192839881" data-app-android="fb://page/838619192839881">Facebook</a>
Run codeHide resultThen I tried to use the links to the "standard" applications that are so popular on Facebook. I even tried using their links to hosted applications to make sure everything was correctly generated. It does not work, it always redirects to the backup site. You can easily check it yourself with https://fb.me/746134728830806
Is it possible to provide a deep link on the website that will open its own application without errors, at least in the default browsers, or quietly roll back to the URL?
source
share