简体   繁体   中英

Call Phone number using whatsapp IOS

Hello im new to ios development and currently need to call whatsapp phone number from my contact list fetched using Contact Framework

i have read that back then there is abid by using AdresssBook framework, the app can open specific whatsapp contact, but i also read on Whatsapp FAQ there is no abid support for URL scheme, is it still possible to call phone number or open specific chat via whatsapp ?

thank you

https://www.whatsapp.com/faq/en/iphone/23559013

http://www.technetexperts.com/mobile/interact-with-whatsapp-from-ios-application/

According to documentation I don't think you can make a call through custom whatsapp app scheme.They support currently only "text" parameter.

NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
[[UIApplication sharedApplication] openURL: whatsappURL];
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM