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?
FCM does not guarantee the order of delivery. Some typical use cases of non-collapsible messages are chat messages or critical messages.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With