Sending silent push notifications to iOS using FCM

2,549 views
Skip to first unread message

Moiz Hayder

unread,
May 31, 2016, 9:50:46 AM5/31/16
to Firebase Google Group
How can we send a silent push notification to the iOS app through FCM Downstream messages ? Here is my Downstream message :


  "content_available":true ,
  "priority": "high",
  "data":{"verify_url":"http://example.com"},
  "to": "<device token>"
}

I received a success response from Firebase, but the notification is not delivered to the iOS app.

Also, when I send a Downstream Message with the notification payload, it is successfully delivered to the iOS app but its not silent.

Spundun Bhatt

unread,
Jun 15, 2016, 8:13:09 PM6/15/16
to Firebase Google Group
Hmm, most likely it's a case of APNS dropping the notification while the app is in background.  If you see this being constantly broken, can you report this through https://firebase.google.com/support/ ? Either "trouble shooting" or "report a bug" should do it.

-S

Silvano Luciani

unread,
Jun 15, 2016, 8:15:51 PM6/15/16
to Firebase Google Group
Hi Moiz,

I think the problem is that you're not supposed to use high priority with silent notifications, from Apple's docs on high priority:
"Notifications with this priority must trigger an alert, sound, or badge on the target device. It is an error to use this priority for a push notification that contains only the content-available key. It is an error to use this priority for a push notification that contains only the content-available key."

Can you try again removing the high priority?
Reply all
Reply to author
Forward
0 new messages