W
W
weranda2018-05-25 16:51:59
JavaScript
weranda, 2018-05-25 16:51:59

Links to a phone number / instant messengers and checking the possibility of a call from the device - is it possible?

Greetings
Many of you are familiar with the rel link attribute (for specifying a phone number and launching some kind of dialer from a PC or smartphone): There are also other types of calls, for example, via instant messengers. Gizmos, of course, are wonderful, but:
<a href="tel:+7123456789">Ужо званю вам</a>

  1. Do you have IE and Win7? - The link will be available, but nothing will happen. We can determine the browser version and show or hide the link
  2. Do you have a modern OS but no app installed? “Something crazy is going to happen.

In general, in most cases, when you specify active links to phone numbers and instant messengers, it will happen, as already written above - some kind of crap, but you want the "crap" not to happen.
For the most part, it seems to me that in order to show an active link to a phone or messenger, you need to somehow find out the possibility of using them, i.e. somehow get information about the presence of installed software for their use. Is it possible?
To make it even clearer, I will give a specific example. We have such buttons on the site with kosher links to messengers:
5b0814a1cd4e3426638740.png
How to show (not show) the corresponding buttons to people who have (or don't have) these messengers?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2018-05-25
@PavelMonro

As far as I know there is no such thing.
When I do this, I only do the display conditions for mobile and tablets only. And if I do it for a PC, then crap will not happen, it will just be an error that there is nothing to open the link with ...

V
Vitaly, 2018-05-25
@rim89

Is it possible?

no
, for managers, you can try to use the names of their protocols, such as href="viber:+7123456789" , but there are their own but with browser support

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question