Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS send WhatsApp message to contact ID programmatically no longer works (iOS 9) [closed]

I tried the following in a simple app and it no longer works:-

[[UIApplication sharedApplication] openURL: [NSURL URLWithString:[NSString stringWithFormat:@"whatsapp://send?abid=%d&text=%@", abid, @""]]];

Has WhatsApp dropped this functionality in their latest version?

like image 859
Wael Avatar asked Nov 08 '22 12:11

Wael


1 Answers

In iOS 9, LSApplicationQueriesSchemes need to call, ensure once are you added the following information in your .plist:

<key>LSApplicationQueriesSchemes</key>
 <array>
  <string>whatsapp</string>
 </array>

check this will work for you or not

like image 91
PinkeshGjr Avatar answered Nov 14 '22 22:11

PinkeshGjr