向 iPhone 发送全屏、消失的短信

发布于 2024-10-31 01:33:13 字数 500 浏览 1 评论 0 原文

我住的地方(丹麦哥本哈根)有一家出租车公司,当您订购的汽车即将到达时,他们会向您发送短信。

这些短信与我在 iPhone 上收到的任何短信不同,它们全屏显示,并且不会保存到短信应用程序中。请参阅此屏幕截图:

iPhone 上的全屏短信

一旦您按下“关闭”,消息就会完全消失。短信应用程序中没有它的踪迹。

我认为这样做的能力可能在某种程度上对应用程序有用。对于超级重要的事情,可能会提供而不是定期的推送通知。但最重要的是,我很好奇想了解正在发生的事情。

  • 这是常规短信还是某种蜂窝网络警报?

  • 如何发送这些内容?是内容格式触发了这种特殊显示还是协议功能?

  • 它们在其他手机上会如何显示?

  • 如果不是常规短信,而是某种网络警报,是否可以将其发送到支持 3G 的 iPad?

Where I live (Copenhagen, Denmark) there is a taxi company which offers to send you an SMS when the car you ordered is about to arrive.

The SMSs are unlike any I have received on my iPhone in that they appear fullscreen and are not saved to the SMS application. See this screenshot:

A full screen SMS on an iPhone

As soon as you press "Dismiss" the message is completely gone. No trace of it in the SMS application.

I was thinking that the ability to do this could be useful for apps in some way. Perhaps offered instead of a regular push notification for super important things. But most of all I am curious to learn what's going on.

  • Is this a regular SMS or some sort of cell network alert?

  • How can these be sent? Is it content formatting which triggers this special display or is it a protocol feature?

  • How would they appear on other phones?

  • If it is not a regular SMS but some sort of network alert would it be possible to send one to a 3G-enabled iPad?

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

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

发布评论

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

评论(3

扛刀软妹 2024-11-07 01:33:13

在短信前加上 *go 前缀。

请参阅此链接

请务必查看 此链接(链接现已失效,因此请查看archive.org 版本)也如此,因为发送它们可能会产生额外费用。经过研究,只有海外(非美国)的 GSM 提供商可以做到这一点。

Prefix your text messages with *go.

See this link!

Be sure to see this link (link is now dead so view the archive.org version) too as it may cost an additional charge to send them. After research only GSM providers over seas (not in the US) can do this.

緦唸λ蓇 2024-11-07 01:33:13

我刚刚写了一篇关于这些 0 类或“flash”消息的博客文章 此处。它们现在在 iOS 7 中看起来略有不同:

iOS 7 上的 Class 0 message

SMS 规范 对于 0 类消息有这样的规定:

当移动终止消息为类别 0 并且 MS 具有
显示短消息的能力,MS [移动]应显示
立即发送消息并向 SC [服务中心] 发送确认信息
消息已成功到达 MS,无论是否存在
(U)SIM 或 ME 中是否有可用内存。该消息不得
自动存储在 (U)SIM 或 ME 中。

我进一步研究了这些技术细节,结果发现该类是使用 SMS-DELIVER 和 SMS-SUBMIT 的“数据编码方案”(DCS) 字段的最后 2 位来设置的 协议数据单元。 DCS 字段是单个八位位组,其用途根据位 4-7 的值而变化。在位 4-7 设置为 00xx 或 1111 的情况下,可以指定消息类别。

在前一种情况下,位 5 指示文本是否被压缩,位 4 指示是否已指定消息类别,位2 和 3 指示字符集,位 0 和 1 指定类别(如果位 4 等于 1)。因此,例如,00010000 (0×10) 将表示使用 GSM 7 位默认字母表的未压缩 0 类消息,而 00110100 (0×34) 将表示具有 8 位编码 UD 字段的压缩 0 类消息。

I've just written up a blog post on these class 0 or "flash" messages here. They look slightly different now in iOS 7:

Class 0 message on iOS 7

The SMS specification has this to say about class 0 messages:

When a mobile terminated message is class 0 and the MS has the
capability of displaying short messages, the MS [mobile] shall display the
message immediately and send an acknowledgement to the SC [service center] when the
message has successfully reached the MS irrespective of whether there
is memory available in the (U)SIM or ME. The message shall not be
automatically stored in the (U)SIM or ME.

I had a look into the technical details of these a bit more and it turns out that the class is set using the last 2 bits of the "Data Coding Scheme" (DCS) field of the SMS-DELIVER and SMS-SUBMIT protocol data units. The DCS field is a single octet, the use of which varies depending on the value of bits 4-7. A message class can be specified in the cases where bits 4-7 are set to either 00xx or 1111.

In the former case, bit 5 indicates whether or not the text is compressed, bit 4 indicates whether a message class has been specified, bits 2 and 3 indicate the character set and bits 0 and 1 specify the class (if bit 4 is equal to 1). So, for instance, 00010000 (0×10) would indicate an uncompressed class 0 message using the GSM 7 bit default alphabet and 00110100 (0×34) would represent a compressed class 0 message with an 8 bit-encoded UD field.

手长情犹 2024-11-07 01:33:13

它称为 Flash SMS,也适用于其他手机。来源:http://en.wikipedia.org/wiki/Short_Message_Service#Flash_SMS

It's called a Flash SMS, and works on other phones too. Source: http://en.wikipedia.org/wiki/Short_Message_Service#Flash_SMS

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