在Expo应用程序中发送SMS,而无需重定向到设备默认消息传递应用程序
作为我正在研究的学校项目的一部分,我正在尝试构建一个消息传递应用程序,该应用程序利用SMS作为发送和接收SMS的默认方法,而无需重定向到设备的默认SMS消息应用程序(即发送/接收SMS的SMS我的应用程序不将iPhone上的消息应用重定向到)。但是我还没有发现任何可以用来实现这一目标的东西。
PS:项目的要求之一是不使用任何外部库,除了Expo提供的内容,
As part of a school project I am working on, I am trying to build a messaging app that utilizes SMS as the default method for sending and receiving SMS without redirecting to the default SMS Messaging App of the device (ie sending/receiving an SMS for my app without redirecting to the Messages app on the iPhone). but I haven't found anything that can be used to achieve this.
PS: One of the requirements of the projects is not using any external library, except for the things provided with Expo,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将必须使用外部库。该功能在反应中不构建本机
一个外部库将是“ https://www.npmjs .com/package/react-native-sms “
如果您真的不想使用外部库,则唯一的选项是编写自己的函数,与本机API通信
You will have to use an external library. That feature isnt build in react Native
One external Library would be "https://www.npmjs.com/package/react-native-sms"
The only option you have if you really dont want to use external librarys is, to write your own function, which communicates with the native API