[英]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
你好我是ios开发的新手,现在需要从我使用
Contact Framework
提取的联系人列表中调用whatsapp电话号码
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 ? 我已阅读,当时有
abid
使用AdresssBook
框架,应用程序可以打开特定的WhatsApp联络,但我也读了WhatsApp FAQ没有abid
的URL方案的支持,它仍然可以调用的电话号码,或打开特定聊天通过whatsapp?
thank you 谢谢
https://www.whatsapp.com/faq/en/iphone/23559013 https://www.whatsapp.com/faq/en/iphone/23559013
http://www.technetexperts.com/mobile/interact-with-whatsapp-from-ios-application/ 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. 根据文档我不认为你可以通过自定义whatsapp应用程序方案打电话。他们目前只支持“文本”参数。
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
[[UIApplication sharedApplication] openURL: whatsappURL];
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.