How i get WhatsApp abid to compose a message to a specific user in iOS?
ios, iphone, objective-c, whatsapp
Solution
Two recent solutions (July 2017)
WhatsApp 'Click to Chat' API feature must work on all devices:
https://faq.whatsapp.com/en/general/26000030
And, this other schema (for `href` links) seems to be working also:
whatsapp://send?text=MESSAGE&phone=+NUMBER&abid=+NUMBER
Problem
How i get WhatsApp abid to compose a message to a specific user ? i want to send a text message when i select a contact in my app. This is my code: ``` NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?abid=XXX"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } ``` WhatsApp official link: https://www.whatsapp.com/faq/iphone/23559013