Android send message to various Whatsapp contacts

Asked

Viewed 501 times

1

I have an application that today displays the contacts in the calendar that have Whatsapp, and there it is possible to excrever a message in this application and send to the users of Whatsapp, but when calls the Whatsapp goes without any contact selected, then there in Whatsapp is made the selection of to whom will be sent the message. I would like to be able to make the selection in my app, and already send to Whatsapp the selected contacts, someone has already done it?

Currently this part of the code is like this?

Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.setPackage("com.whatsapp"); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.setType("text/plain"); startActivity(sendIntent);

Remembering that should be done firing to multiple contacts, for a contact I have a part of the app that does, but I need to do the shooting for multiple contacts, would be on the screen of Whatsapp that opens just come already with selected contacts.

  • Leonardo, the answer below met you or need some more information?!

1 answer

2

To date, Whatsapp has not yet offered any support for sharing any content to multiple contacts simultaneously. In his FAQ page, is mentioned the steps needed to share with a single person (which should be basically what you did), but not several.

  • Also be careful because Whatsapp may consider this behavior as spam and ban the account. The unauthorized use of the Whatsapp API, which would be possible to send in larger quantities, can also result in the ban.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.