首页 > 解决方案 > 如何在 iOS 中替换通知?

问题描述

我正在 iPhone 应用程序中处理推送通知,但我不知道如何用新通知替换旧通知。目前我正在使用 apns-collapse-id 但它不起作用。我正在使用 FCM 进行推送通知。搜索中的堆栈溢出,但我没有得到正确的答案。

我正在使用此 API 到https://fcm.googleapis.com/fcm/send发送 iOS 推送通知

==>这是我的 json 有效负载

$headers = array('Authorization: key='. $FIREBASE_API_KEY, 'Content-Type: application/json', 'apns-collapse-id':'1');

标签: iosswiftfirebasefirebase-cloud-messagingapple-push-notifications

解决方案


推荐阅读