Yochai Yochai - 1 year ago 254
Android Question

Sharing link on WhatsApp from mobile website (not application) for Android

I have developed a website which is mainly used in mobile phones.

I want to allow users to share information directly from the web page into WhatsApp.

Using UserAgent detection I can distinguish between Android and iOS.

I was able to discover that in order to implement the above in iOS I can use the URL:


I'm still looking for the solution to be used when the OS is Android (as the above doesn't work).

I guess it is somehow related to using "intent" in Android, but I couldn't figure out how to do it as parameter for href.

Answer Source

Just saw it on a website and seems to work on latest Android with latest chrome and whatsapp now too! Give the link a new shot!

<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Share via Whatsapp</a>

Recheckt it today (17th April 2015): Works for me on ios 8 (iPhone 6, latest versions) Android 5 (Nexus 5, latest versions)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download