gorush
gorush copied to clipboard
Silent notifications on iOS not working
It seems that silent notifications are not working for me on iOS.
I followed Apple's instruction by only providing an APNS payload of content-available
, but they don't seem to get delivered.
#438 seems to have the same issue with no fix. When I provide a title, the APN gets delivered, but when it's omitted, it does not.
I tried following request and you can check the APNS request below. Can you share your gorush and APNS request?
request going gorush:
{
"notifications": [
{
"platform": 1,
"priority": "high",
"tokens": [
"**********4wAABp_BOYhKWWMLfSF9GV52UO_rYvBoKbQuuuI6HWSfLdG7_t-ZhA2_Zg47BpQbzBegmHUxovPTp3rU0xajPAfnz9IkOb**********"
],
"content_available": true,
"category": "CONFIRM",
"sound": {
"critical": 1,
"name": "default",
"volume": 1
},
"alert": {
"body": "iOS UAT başarılı bildirim geldi"
},
"data": {
"customerNo": 12345,
"languageCode": "tr",
"specificCharText": "denemee"
}
}
]
}
request going APNS:
{
"aps": {
"alert": {
"body": "iOS UAT başarılı bildirim geldi"
},
"category": "CONFIRM",
"content-available": 1,
"sound": {
"critical": 1,
"name": "default",
"volume": 1
}
},
"customerNo": 12345,
"languageCode": "tr",
"specificCharText": "denemee"
}
Hey @qwertycommander - I know this is some years old now but did you ever manage to find a payload that delivered silent messages to iOS devices reliably? Thanks!