How to integrate whatsapp with android application or a website



We can
integrate whatsapp with the android app in two ways:

1,
Using the Android Intent System which we discussed in my previous blog: “How
to share the media and text with the social android apps
“
2.
Using the custom URL scheme provided by whatsapp itself.
We
will discuss the second one in this blog. 
WhatsApp provides a custom URL scheme to
interact with whatsapp. If you have a website and want to open a WhatsApp chat with
a pre-defined message, you can use whatsapp’s custom URL scheme.
Opening
whatsapp://send?text= followed by the text to send, will open WhatsApp, allow
the user to choose a contact, and pre-defined the input field with the
specified text.
Here
is an example of how to write this on your website:

<a href="whatsapp://send?text=Hello%20World!">Hello, world!</a>

This opens a Whatsapp application to select the contact. Once you select the contact, the predefined text “Hello World” will be posted to the chat window.
That’s
it. Happy Coding…

Reference:
 whatsapp
faq
. 

Leave a Reply

Your email address will not be published. Required fields are marked *