I'm having issues with silent push notifications on iOS. Strangely, things were working as expected on Friday, but now are not.
This is the JSON we've been sending in the HTTP request to FCM (working on Friday, not working today):
{
"to": "<firebase token>",
"content_available": true
}
Based on
this StackOverflow post, I tried adding the sound property like this:
{
"to": "<firebase token>",
"content_available": true,
"notification": {
"sound": ""
}
}
For some reason, that works to trigger a silent push notification to the iPhone.
For context, these things do work as expected:
- Sending non-silent notifications via Firebase
- Sending silent and non-silent notifications directly via APNs
These things do not work:
- Adding the `data` or `priority` properties to the request
Does anyone have any insight into what's going on? It seems that the breakdown happens somewhere between Firebase receiving the notification and attempting to send it to APNs, but I don't know how to debug that.