您什么时候会在推送负载中使用 "thread-id" 键?

When would you use the "thread-id" key in your push payload?

我正在更新应用程序的通知,我正在查看有关推送负载的文档,我看到了 thread-id 键。在文档中它说:

Provide this key with a string value that represents the app-specific identifier for grouping notifications. If you provide a Notification Content app extension, you can use this value to group your notifications together.

我不完全确定 grouping your notifications together 是什么意思。

此密钥的用例是什么?

Thread-id 当您发送 pushNotifications 的应用程序的不同部分时使用,说您有一个交通应用程序,一组可能用于处理旅行状态,另一组用于优惠和折扣,因此您希望将相同的线程 ID 通知分组,但您必须实施一个通知 UI 扩展才能在组中显示,因为苹果的默认方式是对话,请在此处查看更多信息