Wednesday, May 20, 2015

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. 


Mohammed said...

Thanks so much for the comment. I try to put together my learning and experiece in terms of blog and feel great if this helps others.

Google App Integration Chennai

M.I.T.R.A. Agro Equipments Pvt.Ltd. said...

We provide WhatsApp API for Integration with Various software integrations like tally integration & integration with various CRMs. You can use this API to send automated messages through your existing system.
whatsapp api integration

ums tech lab said...

Thanks for writing this article.It is beneficial for both customer & companies so that getting the personally touch with customers & companies. Communication between them fruitful for both.Hence the check marketing strategy is working or not.Communication is simpler than any other marketing tools.
Whatsapp Chat Integration

ums tech lab said...

Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.

Automate Whatsapp Messages

wautomate said...

Your blog is very good
I read your blog
the blog is very appreciated
we provide WhatsApp API Integration With Tally