在lua文件中发送短信

我正在尝试从 lua 脚本发送短信。 我做了一些研究并找到了 native.showPopup,但我想让应用程序自身发送短信,而不是进行组合!

你能帮帮我吗? 谢谢。

点赞
用户869951
用户869951

尝试

url = "sms:1-234-456-6789?body=Hello%2C%20World!"
system.openURL(url)

目前在 Corona Labs 中,system.openURL() 的文档没有提到"短信"作为有效的 URL 类型,但我在其他地方看到过这个被提及。

2014-01-22 20:56:54
用户3041972
用户3041972
> There is no way to do this. You might be able to do it with Corona native which is free now.

这个无法实现。你也许能够使用现在免费的 Corona native 来实现。

2018-09-19 23:36:18