Is it possible to send message to a specific contact through whatsapp
directly from another app? I know the contact ID. I don't want to open whatsapp
via Intent. I just want to send the message directly like normal sms.
i have tried other solutions posted on stackoverflow but they are not working for me.
Download the WhatsApp Message Scheduler app from the Play store. Grand accessibility access from Settings -> Accessibility -> Services & enable the toggle for the app. 2. Open the app & tap on the '+' icon.
Use WhatsApp Automation to sync your WhatsApp API account with HubSpot and: Use the custom workflow action "Send WhatsApp Message" to Send Automated Alerts and Notifications to Customers on WhatsApp and provide updates and information in a quick and efficient manner.
Install the WhatsApp Business API Client — Install your API client. Once your client is working, you can update your application settings. Start using the client — Register your phone number with an API call to /account and send a test message with a call to /messages .
Let me know if it works for you,
Uri mUri = Uri.parse("smsto:+9876543210");
Intent mIntent = new Intent(Intent.ACTION_SENDTO, mUri);
mIntent.setPackage("com.whatsapp");
mIntent.putExtra("sms_body", "The text goes here");
mIntent.putExtra("chat",true);
startActivity(mIntent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With