短信 url 方案不适用于 IOS5
在我的针对 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许可以尝试在没有消息正文的情况下执行此操作。 Apple URL 方案参考 [1] 是这样描述文本链接的:
因此,虽然这在过去可能有效,但他们可能强制执行了最后一部分(不得包含任何消息文本),可能是为了减少某些误用。
[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:
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