M
M
Max2017-11-07 15:40:27
Messengers
Max, 2017-11-07 15:40:27

How to determine whether instant messengers are installed on the phone or not?

There are links where you can send a user from a web page to a messenger:

Telegram: tg://resolve?domain=username
Viber: viber://add?number=79XXXXXXXXX
WhatsApp: whatsapp://send?text=Здравствуйте&phone=+79XXXXXXX

How to display only those links to instant messengers that the visitor has installed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Afanasy Zakharov, 2017-11-08
@afanasiyz

If you are interested in which applications are installed (and you are developing a mobile application), then here is a small plugin (for cordova), there is an example in the code of how the application checks if Instagram is installed.
https://github.com/vstirbu/InstagramPlugin/
(/src/android/CDVInstagramPlugin.java line 83).
I think if you know the IDs of the Telegram, WhatsApp and Viber applications, then you can do something like that.

D
Dimonchik, 2017-11-08
@dimonchik2013

no
maximum you can push and find that the browser is launched inside the application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question