gorush icon indicating copy to clipboard operation
gorush copied to clipboard

Silent notifications on iOS not working

Open qwertycommander opened this issue 3 years ago • 3 comments

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.

#438

qwertycommander avatar Apr 19 '21 07:04 qwertycommander

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"
}

keremoge avatar Apr 20 '21 07:04 keremoge

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!

boma-digital avatar Jan 17 '23 17:01 boma-digital