Interesting investigation, checked all things - but facing same issue.
following input:
iPhone 7+
iOS 15.5
push notification and background refresh is allowed from app
battery is 100% ( low-power mode not activated )
Background modes checked: background fetch, remote notification
Push capabilities added (Remote notification, Background processing, Background fetch)
postman requests successful - 200 in response, but not trigger didReceiveRemoteNotification:
`{
"to": "{{fcmToken}}",
"yourCustomKey":"1",
"aps":{ "content-available":1,
"apns-priority":5,
"sound": "",
"apns-push-type":"background",
"badge":0}
}
{
"to": "{{fcmToken}}",
"yourCustomKey":true,
"aps":{ "content-available":true,
"apns-priority":5,
"sound": "",
"apns-push-type":"background",
"badge":0}
}
{
"to": "{{fcmToken}}",
"yourCustomKey":true,
"aps":{ "content-available":true,
"apns-priority":5,
"sound": "default",
"apns-push-type":"background",
"badge":0}
}
`
and even that doesn't trigger didReceiveRemoteNotification
Listing 7-1 shows an example of a JSON payload for a background update notification.
developer.apple.com
{ "to": "{{fcmToken}}", "aps" : { "content-available" : 1 }, "acme1" : "bar", "acme2" : 42 }
Nothing from requests above works.
Yes I did reload iPhone
Any suggestion?? Hot to t-shoot next?