本文介绍了iOS Swift 3捆绑通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在我的应用程序中,我正在使用firebase推送通知。问题是当用户长时间连接到互联网后,他们会收到很多通知作为个人通知。是否可以接收whatsapp等通知(您有10个新通知)。如果用户一次收到多于1个通知,则意味着我们需要将其作为Group或Bundle通知。In My App I am using firebase push notification. Problem is when user connected to internet after long time they will receive lot of notifications as individual notification. Is it Possible to Receive Notification like whatsapp(You have 10 New Notification). If user receives more than 1 notification at a time means we need to make it as Group or Bundle notification.推荐答案为了iOS中的捆绑通知,您必须指定 thread-id :In order to bundle notifications in iOS, you'll have to specify a thread-id:但是,FCM中的 thread-id 目前没有参数对应。您可以尝试做的是使用 data 消息有效负载并指定 thread-id 作为自定义键值对。However, there is currently no parameter counterpart for thread-id in FCM. What you could try and do is make use of a data message payload and specify the thread-id as a custom key-value pair.一些可能有用的帖子: https://stackoverflow.com/a/37621274/4625829 iOS" thread-id"没有分组推送通知 iOS 10如何为远程设置UNotificationContent threadIdentifier通知https://stackoverflow.com/a/37621274/4625829iOS "thread-id" doesn't group push notificationsiOS 10 How to set UNotificationContent threadIdentifier for remote notification 这篇关于iOS Swift 3捆绑通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-14 04:24