3

I'm trying to use WhatsApp url scheme in a web application. I am using the WhatsApp documentation for url scheme for iOS, as detailed here: http://www.whatsapp.com/faq/en/iphone/23559013

When clicking on the following url: whatsapp://send?text=Hello

On an iPhone this opens up the phone's WhatsApp application. However on an Android it just looks for this url in Google, and does not activate the WhatsApp application.

Is there a url scheme for android? Is there something different that needs to be done/ some change to the code, to make it work on android as well?

How can I share a url in whatsapp from the browser, in a way that will work for both iOS and Android?

mauris
  • 42,982
  • 15
  • 99
  • 131
Lucy Weatherford
  • 5,452
  • 16
  • 50
  • 76
  • 1
    possible duplicate of [Send a link to whatsapp group directly from browser (or from app)](http://stackoverflow.com/questions/19567538/send-a-link-to-whatsapp-group-directly-from-browser-or-from-app) – molnarm Oct 30 '13 at 12:09
  • 4
    It is not a duplicate, this is a specific question, and it has a related answer (though not the specific one); and in the other question there are other options for solution. Also, the other question has no answers! So why would you close it? – Lucy Weatherford Oct 30 '13 at 12:26

1 Answers1

3

Android URL Scheme seems to be the same as for iOS

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-filled message, you can use our custom URL scheme to do so. Opening whatsapp://send?text= followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.

Checkout the official Android documentation

TUNER88
  • 923
  • 1
  • 20
  • 36