I am using FCM.
I made app server and send notification through app server.
I followed document of firebase analytic. Now, i want to know notification_open and notification_dismiss.
But it only show me notification_foreground and notification_receive.
According to https://support.google.com/firebase/answer/6317485?hl=en,
Notification_open and notification_dismiss is automatically collected event.
Why i can't get notification_dismiss and notification_open event?
Following image is my all analytics event on console.
enter image description here
The documentation for the notification events all contain the phrase "when sent by Firebase Notifications".
For example: notification_receive -- when a notification sent by Firebase Notifications is received by a device when the app is in the background
My experience is that "sent by Firebase Notifications" means "sent from the Notification panel of the Firebase Console". The events are not generated when the notifications are created by posting data to https://fcm.googleapis.com/fcm/send.
Related
I am trying to send news messages to all app users. I thought about using Firebase Cloud Messaging. It is implemented on the client (Android app) and registered for a topic. Now I would like to send a message through the Firebase Console to this topic.
Is this possible? And how can I send a firebase message to a specific topic using the firebase console? I searched on the website, but did not find the option. Or is this only possible using a script (e.g. PHP) to send a message to a specific topic.
In the Notification composer of the Firebase console, enter a title and text for your message.
Then click Next.
In the next page, click the Topic button to send the message to a topic:
I want to create an event management app in which the admin can create new events and the client can book seats for the event.
What I want to achieve is that when the admin creates a new event, a push notification (Even if the app is not open in the background) should be received on the client app.
I have been trying to send notifications through FCM (Firebase Cloud Messaging). But that is working only when I click the Publish button on the Firebase Console. How can I code it so that a push notification is fired automatically when the admin creates a new event?
If you use the Firestore or Firebase real-time DB to store events, you can use a Firebase cloud function to send push notifications. Read more about cloud functions here https://firebase.google.com/docs/functions/use-cases
I'm still new with Firebase cloud messaging.
Whenever I send a push notification to an app, does it get recorded in this table in the firebase console like in the image below?
That only shows notifications that you compose at the console. It doesn't show messages that you send programmatically with the Admin SDK or HTTP API.
I'm manually handling firebase notifications by overriding the onHandle intent of the FirebaseMessagingService.
And using the intent I generate a notification.
Is there a way to manually report the notification opened to the Firebase at all because I'm not getting opened statistics reported back to the firebase console.
As above, even when letting firebase notifications get handled per normal, these open notifications are not being reported either.
Thanks!
The stats shown in the notifications panel of the Firebase console are only for messages sent from that notification panel. There is currently no way to trigger the stats for messages sent through the Firebase Cloud Messaging API directly.
Update: since late 2018 the Firebase now also reports messages sent through called to the Firebase Cloud Messaging API.
According to https://firebase.google.com/docs/cloud-messaging/understand-delivery only "Sends" work for data-only messages:
Sends — The data message or notification message has been enqueued for delivery or has been successfully passed to a third-party service like APNs for delivery. See lifetime of a message for more information.
Impressions (available only for notification messages on Android devices) — The display notification has been displayed on the device.
Opens — The user opened the notification message.
For those curious to know my workaround at this time.
We run push campaigns.
For each campaign we created a distinct, reusable event.
We register the event "campaign_received" and "campaign_opened"
When a message is received, we trigger the event.
When the notification is opened, we trigger the event.
Then, under each event, we just select the event, and file their stats per day, week, month, etc.
One needs to select the event to get to the event dashboard area, since the event list view shows the total amount of events sent and or received.
For bespoke notifications the 500 event limit might be reached quite quickly, so be sure to bundle your notifications into reusable event categories if possible.
We have recently started using FCM as our notification service , We are using batch process to send notifications to Android and IOS through FCM. Problem is notification_recieve event is not showing up in the events tab of firebase analytics event tab in android app. As per as documentation this event should be logged automatically for android app.
The documentation for the notification events all contain the phrase "when sent by Firebase Notifications".
For example: notification_receive -- when a notification sent by Firebase Notifications is received by a device when the app is in the background
My tests indicate "sent by Firebase Notifications" means "sent from the Notification panel of the Firebase Console". The events are not generated when the notifications are created by posting data to https://fcm.googleapis.com/fcm/send.