HTML正文中的超链接iOS SMS方案 [英] iOS SMS scheme in HTML hyperlink with body
问题描述
我们试图在HTML页面中创建一个超链接,该链接应该打开预定义的短信 - 当用户点击我们页面上的链接时,短信应用应该打开预定义的号码和正文。我们能够成功设置号码,但我们无法设置此短信的正文。是否有可能?
我们到目前为止所尝试的链接是:
< ; a href =sms:123456789?body = sometext> sms link< / a>
非常感谢您的帮助! / p>
不是,这是不可能的。
短信方案用于启动消息应用程序。这种类型的URL
的格式是sms:,其中是一个可选参数
,用于指定SMS消息的目标电话号码。此
参数可以包含数字0到9以及加号(+),连字符
( - )和句点(。)字符。 网址字符串不得包含任何
消息文本或其他信息。 a iPhone / Android / iPhone / iPhone / iPhone / iPhoneWe are trying to create a hyperlink in HTML page which should open predefined SMS - when user taps this link on our page, SMS app should open up with predefined number and body. We were able to successufully set the number, but we are unable to set body of this text message. Is it possible?
The link we are so far trying is :
<a href="sms:123456789?body=sometext">sms link</a>
Thanks a lot for help!
解决方案No, it is not possible.
The sms scheme is used to launch the Messages app. The format for URLs of this type is "sms:", where is an optional parameter that specifies the target phone number of the SMS message. This parameter can contain the digits 0 through 9 and the plus (+), hyphen (-), and period (.) characters. The URL string must not include any message text or other information.
Reference : iPhoneURLScheme SMS
这篇关于HTML正文中的超链接iOS SMS方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!