存折/钱包:通知警告如何运作
Passbook / Wallet: How are notification warnings working
我目前正在研究 wallt/passbook 的功能,有一件事我正在努力解决:
"Notifications".
有什么方法可以使用存折实时推送消息到锁屏吗?
如果我检查已安装的几个通行证(单击信息图标),它会建议打开实时更新和通知。
实时更新更新通行证本身是一个不言自明的功能。
但是通知呢?
这是否适用于存折而无需另外安装应用程序?
它是一个看起来像是来自应用程序的真实推送消息吗?
我真的试过 RTFM 但没有找到很多。
是 - 您会收到 真实 推送消息,就像使用应用程序一样。
也许您错过了手册的这一部分 Updating a Pass - 设备显示更改消息 部分描述了锁定屏幕消息。
The device compares the latest version of the pass against the version it had before to determine which fields have changed. If the value of a field has changed and the field specifies a change message, the device shows the message to inform the user about the change.
因此,通过将更新推送到通行证,您将针对任何已更改其值 且 中设置了 changeMessage
的字段触发锁定屏幕消息pass.json
.
这与 App 消息的唯一区别是您只能设置消息的文本(通过 changeMessage
条目输入相关值)。其他丰富的推送消息功能,如自定义警报和操作不可用。
我目前正在研究 wallt/passbook 的功能,有一件事我正在努力解决: "Notifications".
有什么方法可以使用存折实时推送消息到锁屏吗? 如果我检查已安装的几个通行证(单击信息图标),它会建议打开实时更新和通知。
实时更新更新通行证本身是一个不言自明的功能。
但是通知呢? 这是否适用于存折而无需另外安装应用程序? 它是一个看起来像是来自应用程序的真实推送消息吗? 我真的试过 RTFM 但没有找到很多。
是 - 您会收到 真实 推送消息,就像使用应用程序一样。
也许您错过了手册的这一部分 Updating a Pass - 设备显示更改消息 部分描述了锁定屏幕消息。
The device compares the latest version of the pass against the version it had before to determine which fields have changed. If the value of a field has changed and the field specifies a change message, the device shows the message to inform the user about the change.
因此,通过将更新推送到通行证,您将针对任何已更改其值 且 中设置了 changeMessage
的字段触发锁定屏幕消息pass.json
.
这与 App 消息的唯一区别是您只能设置消息的文本(通过 changeMessage
条目输入相关值)。其他丰富的推送消息功能,如自定义警报和操作不可用。