Send WhatsApp message to specific contact?


#1

Hey guys.

I’m developing an app based on ionic and angularJS. I want to send messages to specific contacts via WhatsApp. With the ngCordova plugin http://ngcordova.com/docs/plugins/socialSharing/ I’m able to send messages to a contact. However, the plugin opens the contact list in WhatsApp and I have to select the contact manually.
There is the official WhatsApp URL scheme on iOS http://www.whatsapp.com/faq/en/iphone/23559013 supports ABIDs (Address Book IDs) but as far as I can see the android one https://www.whatsapp.com/faq/en/android/28000012 doesn’t.

Do you have any idea how to solve this?

Thanks for your help!
Alex


#2

as far as i know social sharing is the only way to share some content. in case of whatsapp, you can create a web service and call the unofficial whatsapp api.


#3

Thanks @gaurav_ch for your reply. Which unofficial WhatsApp API do you mean?