短信 url 方案不适用于 IOS5

发布于 2024-12-20 00:14:45 字数 217 浏览 7 评论 0原文

在我的针对 iphone 和 android 的网络应用程序中,我有一个“发短信给我”按钮,单击该按钮后,用户会收到预先填写了号码和正文的短信。这在 ios 5 之前的 iphone 中运行良好。 在IOS 5中,点击按钮不会导致短信应用。 IOS 5 中的短信 url 方案是否有任何更改,我缺少这些更改。这是我正在使用的 短信:2062142930?body=手机%20询价&

谢谢 扎阿法尔

In my web app targeted to iphone and android, I have a "TEXT ME" button which when clicked, leads the user to sms with number and body prefilled. This works fine in iphone prior to ios 5.
In IOS 5, clicking on the button does not lead to sms applicatin. Is there any change in IOS 5 for sms url scheme which i am missing. Here is what i am using
sms:2062142930?body=Mobile%20Inquiry&

Thanx
zAfar

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一绘本一梦想 2024-12-27 00:14:45

也许可以尝试在没有消息正文的情况下执行此操作。 Apple URL 方案参考 [1] 是这样描述文本链接的:

  • SMS 方案用于启动文本应用程序。此类 URL 的格式为“sms:”,其中 是指定 SMS 消息的目标电话号码的可选参数。此参数可以包含数字 0 到 9 以及加号 (+)、连字符 (-) 和句点 (.) 字符。 URL 字符串不得包含任何消息文本或其他信息*

因此,虽然这在过去可能有效,但他们可能强制执行了最后一部分(不得包含任何消息文本),可能是为了减少某些误用。

[1] http://developer.apple.com/library/ios/精选文章/iPhoneURLScheme_Reference/iPhoneURLScheme_Reference.pdf

Perhaps try this without a message body. The Apple URL scheme reference [1] says this about text links:

  • The sms scheme is used to launch the Text application. 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*

So while this may have worked in the past they may have enforced the last part (must not include any message text), probably to mitigate some misuse.

[1] http://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/iPhoneURLScheme_Reference.pdf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文