Android send message to multiple Whatsapp contacts

1

I have an application that today displays calendar contacts that have whatsapp, and there it is possible to write a message in that application and send it to whatsapp users, however when calling the whatsapp it goes without any selected contacts, so there in whatsapp is made the selection of who 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, has anyone already done this?

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 the trigger must be done for several contacts, for a contact I have a part of the app that does, but I need to do the trigger for several contacts, it would be on the whatsapp screen that opens just come already with the selected contacts.

    
asked by anonymous 31.03.2017 / 20:23

1 answer

0

WhatsApp has not yet offered any support for sharing any content for multiple contacts at a time . In your FAQ page , the steps you need to share with a single person (which should be basically what you did), but not several.

    
31.03.2017 / 20:30