React Native链接SMS [英] React Native Linking SMS
问题描述
现在RN支持跨平台链接,我想知道如何使用预设消息发送短信。根据文档( https://facebook.github.io/react-native /docs/linking.html#content ):
Now that RN supports Linking cross-platform, I am wondering how to send an SMS with a preset message. Per the docs (https://facebook.github.io/react-native/docs/linking.html#content):
尝试使用任何已安装的应用打开指定的网址。
您可以使用其他网址,例如位置(例如geo:37.484847,-122.148386),联系人或可以使用已安装的应用打开的任何其他网址。
Try to open the given url with any of the installed apps. You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, or any other URL that can be opened with the installed apps.
我的问题是,我用什么URI方案打开带有预定义消息的短信?它是跨平台的吗?
My question is, what URI scheme do I follow to open an SMS with a predefined message? Is it cross-platform?
谢谢。
推荐答案
有你考虑并试过 sms:number?body = yourMessage
?
你可以在 RFC 5724 。
这篇关于React Native链接SMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!