Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCM Notification Delivery Report

i know after posting message google will send back a message ID and it does not mean that the message was already delivered to the device.

is there anyway to receive delivery reports of sent notifications in FCM?

like image 661
Payam Kokabi Avatar asked Oct 18 '16 13:10

Payam Kokabi


People also ask

Does FCM guarantee delivery?

FCM does not guarantee the order of delivery. Some typical use cases of non-collapsible messages are chat messages or critical messages.

How do I view FCM logs?

You can view audit logs in Stackdriver Logging using the GCP Console, the gcloud command-line tool, or the Logging API. You can use the Logs Explorer in the GCP Console to retrieve your audit log entries for your Firebase project, folder, or organization: In the GCP Console, go to the Logging > Logs Explorer page.

How do I get data from Firebase notification?

A user tap on a notification opens the app launcher by default. Messages with both notification and data payload, when received in the background. In this case, the notification is delivered to the device's system tray, and the data payload is delivered in the extras of the intent of your launcher Activity.


1 Answers

Yes, the message_id only identifies that the message was successfully delivered to the FCM servers.


December 17, 2019 - FCM Update

FCM has removed ongoing support for delivery reciepts via the XMPP protocol. In place of XMPP delivery receipts, developers should enable delivery data export in the FCM client SDK.

What I think you're looking for is Delivery Receipts:

Delivery Receipt: If the app server included delivery_receipt_requested in the downstream message, the XMPP connection server sends a delivery receipt when it receives confirmation that the device received the message.

like image 81
AL. Avatar answered Sep 20 '22 12:09

AL.