Open Whatsapp in a specific contact via a web link

3

I'm doing tests where through a link when clicked, open whatsapp already in a specific contact.

What is the scenario? The client that enters the site by the smartphone will appear an icon and when you click the icon, opens the whatsapp for the client already on the screen for him to chat with us.

After some search I found this example: <a href="intent://send/abid=NUMERO_TELEFONE#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end">LINK</a>

On Android until you open whatsapp on the screen to talk, but if there has already been a conversation before and it is saved.

If a contact has not previously existed, it displays a message saying "I'm probably trying to send a message to a contact that does not have whatsapp installed and gives the suggestion to invite me to use it."

That is, it only works if there has been a conversation before. So I need to know a way to call a specific contact even without the need for a previous conversation.

I am grateful to anyone who can help. Strong hug

    
asked by anonymous 15.07.2016 / 16:20

2 answers

3

You need to use link This will work even without the previous contact, both for android and ios If your site is in wordpress the plugin WhatsApp Chat does it for you automatically, just enter the number and message you want.

Now for web and desktop, just change the 'api' of the url for 'web'

    
29.05.2017 / 05:44
0

Dude, some time ago I wanted to do something like that. So I ended up finding a solution that even suits WhatsApp and is very simple to implement.

I wrote this article and hope it helps you: link

    
26.07.2018 / 23:17