我正在尝试从本机应用程序向WhatsApp联系人发送文本消息,我发现我可以通过链接来做到这一点
Linking.openURL('whatsapp://send?text=hello');
上面的代码仅打开whats应用程序,我需要打开一个具有特定号码的聊天记录,是否有我必须像文本一样发送的参数?
您可以使用它向特定号码发送消息:
Linking.openURL('whatsapp://send?text=hello&phone=xxxxxxxxxxxxx')