A
A
Amalgama432016-07-11 18:12:37
whatsapp
Amalgama43, 2016-07-11 18:12:37

How to send a message via whatsapp from a web page on mobile devices?

It is important that the contact is not in the contact list of the phone. It is necessary that the user clicks on the link and whatsapp dialog opens with the given number (new, not from the list).
Here in this topic the question is revealed: you can send a message with the given text
href="whatsapp://send?text='Текст сообщения и тд'"- whatsapp will open and you need to select a contact from existing ones, or just open a dialogue again with an existing contact according to the scheme

href="intent://send/[countrycode_without_plus][number]
#Intent;
scheme=smsto;
package=com.whatsapp;
action=android.intent.action.SENDTO;end

At the same time, when you try to send a message to an unknown number, it offers to send an SMS message with an invitation to WhatsApp to this contact. Is there a way to immediately start a conversation with a new contact?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question