Hello everyone
Our application started to spam the Firebase Push Notifications when the device had the iOS 17 Beta. This behavior does not happen in iOS 16, but it was reproduced in many iOS 17 Beta (Beta 3, 4 & 5).
The issue goes like this:
- Our backend service uses an SDK Firebase to send one notification
- The user receives the notification
- Then after some minutes, the device starts to receive the same push notification with the old date-time, by intervals of 5 to 15 minutes
We also got reports of other people with the same issue:
You can see the following screenshot of the output of this after 2 hours:
We are also facing the same issue. I opened a Technical Support Issue. The support engineer could see the problem happening. He said, he is going to contact the APNS team regarding this issue. We initially thought its the JSON payload format that could be causing the issue. But we fixed and it is still happening. We haven't tried to remove the ID parameter from the payload as we need that parameter in the payload. We thought Apple will fix it. Any other update on this issue?
Here is the update: Apple confirmed that the issue is with having "id" field inside the "aps" dictionary. They asked us to keep the "id" field outside the "aps" dictionary to stop the issue from happening. Here is a much simpler fix to this issue. Someone below found that by changing the return type of the ID field value fixed the issue. We tried that as removing the id field will impact our current client. And that worked. We are planning to do the right way afterwards. Hope this helps.