我正在尝试从 react native 应用程序向 WhatsApp 联系人发送短信,我发现我可以通过链接来做到这一点
Linking.openURL('whatsapp://send?text=hello');
上面的代码仅打开什么应用程序,我需要打开与特定号码的聊天是否有一个参数我必须发送类似文本?!
最佳答案
您可以使用它向特定号码发送消息:
Linking.openURL('whatsapp://send?text=hello&phone=xxxxxxxxxxxxxxx')
关于reactjs - React Native 发送消息到特定的 Whatsapp 号码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43518482/