Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification from Firebase cloud messaging are received but they are not shown in the cloud messaging reports

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?

like image 384
AM13 Avatar asked Aug 29 '19 09:08

AM13


People also ask

How do I see notifications in Firebase?

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.

What are the two types of messages in Firebase Cloud Messaging?

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.

How do I send messages from Firebase Cloud Messaging?

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.

How do I view notifications sent to FCM SDKs in Firebase?

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:

How do I get notifications from Firebase console?

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.

What happens to FCM data when Firebase goes down?

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.


Video Answer


1 Answers

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.

like image 143
AM13 Avatar answered Oct 09 '22 05:10

AM13