If you are an Android App developer you can make use of implicit Intents to share a message via WhatsApp Application.
WhatsApp share SnippetIntent sendToWhatsAppIntent = new Intent();
sendToWhatsAppIntent.setAction(Intent.ACTION_SEND);
sendToWhatsAppIntent.putExtra(Intent.EXTRA_TEXT, "This message would be shared via WhatsApp.");
sendToWhatsAppIntent.setType("text/plain");
startActivity(sendToWhatsAppIntent);
But if you are not an Android Java Native App developer and still want to integrate WhatsApp with your App or Website, it is now officially possible to share a message using HTML code to WhatsApp contacts, i.e. with your Website.
WhatsApp provides a custom URL (whatsapp://send?text=) to send a message with WhatsApp :
Any website can now send text messages to the WhatsApp chat application. One has to send a pre-filled text message to the custom URL scheme using an anchor tag. Opening Whatsapp://send?text= followed by the text to send, will open WhatsApp. The user can now choose a contact, and pre-fill the input field with the specified text.
Example: How to achieve this :<html>
<head>
<title>Send Message from Wesite to WhatsApp</title>
</head>
<body>
<a href="whatsapp://send?text=Message!">
Send Message to a Contact Via WhatsApp.</a>
</body>
</html>
Note: As the text message is sent as a Query String, do not forget to make the text URL encoded (example text="hello%20there!"). Also, note that this functionality may not work on webpages accessed from desktops (the page has to be accessed through an Android device having WhatsApp application installed on it)
Hope you find this information useful: read more on WhatsApp official page: whatsapp.com/faq/en/android/28000012
Hashtags : #Android #WhatsApp #Integration- Officially Send WhatsApp message using webpage (html)
- Can we move apps like WhatsApp, Facebook to external MicroSD card
- [Solution] Installing Whatsapp There's insufficient space on the device
- How to know if someone has read your WhatsApp message
- How to send WhatsApp message from your Android App using Intent
- Share Multiple Images in WhatsApp using Android Intent
- Share Image to WhatsApp with Caption from your Android App
- WhatsApp launches WhatsApp Web to Access Messages over web browser
- WhatsApp Web escanner
- How to resolve Certificate Expired WhatsApp Error
- [Solved] Notepad++ Menu Bar Missing - NotepadPlusPlus
- Copy all .vcf Mobile Contacts files into one .vcf - HowTos
- Add blank lines after each lines using Notepad++ text editor - NotepadPlusPlus
- How to set background color for android layout pragmatically using java and through xml - Android
- Share or Send SMS via Android Intent - Android
- Android Emulator window was out of view and was recentered - Android-Studio
- Multiline EditText in Android Example - Android
- Right Align Text in Bootstrap framework - Bootstrap
- SharePoint 2016 error - Could not find file ManageUserProfileServiceApplicationTenantSimplified.xml - SharePoint
- Division between two numbers - C-Program
- How to send email from JavaScript HTML using mailto - JavaScript
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio - Android-Studio
- How to remove disable google search blue triangle - Google
- How to update Android Studio - Android-Studio
- Add Buttons at the bottom of Android Layout xml file - Android