I'm using Firebase Cloud Messaging to send notification to my android device. In my project console in the section "reports" I have 0 message received and 100 sended. The problem is that I actually received the notifications on my device but why do not they appear in the cloud messaging reports?
How can i solve this problem?
Handling Notifications Go to the app build gradle file. In the dependencies section, add the Firebase Cloud Messaging dependency and sync the project. Create a new class call PushNotificationService and have it extend the FirebaseMessagingService class. Go to the manifest file and add the service to the app.
Using Firebase Cloud Messaging, we can send three types of messages, i.e., Notification Message, Data Message, and the message with both Notification & Data Payload.
Add Firebase Cloud Messaging to your Android, iOS, or Web app. Set up your trusted environment where you'll build and send message requests. You can write sending logic using the Admin SDK, and readily deploy that code on Cloud Functions for Firebase or other cloud environments managed by Google.
In the Reports tab in the Firebase console, you can view the following data for messages sent to Android or iOS FCM SDKs, including those sent via the Notifications composer and the FCM APIs:
In the Firebase console messaging Reports tab, you can search a list of all existing labels and apply them singly or in combination to filter the statistics displayed. A built-in Notifications funnel analysis shows you how your users respond to particular notifications sent from the Firebase console.
In the event of a data outage, FCM will work to fix forward and will not backfill the data after the issue is fixed. In larger outages, the data could be unavailable for a week or more. The metrics provided by the Firebase Cloud Messaging Data API are meant to provide insight into broad trends of message delivery.
The reason is that statistic about message sended are updated in real-time, instead received, impression and message opened do not. I get these statistic the next day.
Please note that for "Data Message" you have to set in the message the field "analytics_label" in order to see statistics. For "Notification message" this should not be mandatory to see statistics.
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