Search code examples
firebasepush-notificationfirebase-cloud-messaging

firebase cloud messaging not showing any data in reports


I am using fcm for push notifcation from past 5-6 days and the devices are receiving the push notifcations , but the reports in firebase console is not showing any data.

I am using sendToDevice() method of firebase messaging and the payload looks like this

"payload": {
    "data": {
        "appRedirectionURL": "/dashboard",
        "url":"/dashboard",
        "title": "Test 1",
        "body": "hello",
        "pushMessage":"test",
        "inAppNotificationTitle":"testing ",
        "inAppNotifactionBody":"hello"
    }
},

attaching the reports tab screenshot enter image description here


Solution

  • You need to add analytics labels to messages. I haven't found why automatic reports don't work without it. But when I added analytics_label to my messages they started showing up in firebase console

    https://firebase.google.com/docs/cloud-messaging/understand-delivery?platform=android#adding-analytics-labels-to-messages