Firebase console - firebase

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.

Related

How to send topic messages through firebase console?

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:

How to trigger push notifications in Flutter app using FCM without using the Firebase Console?

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

Enabling the notification feature for my firebase app

I have made an app with the use of firebase. It is basically a chat application in which you van send and receive the text and images. I want to add a functionality in it that whenever a user sends a msg, then another user should get a notification . When I try to send a notification through the firebase console, then it is working, but when a user messages through the app, then it is not showing any notification to another user. So, can anyone tell me that how can this functionality be achieved ?Also, provide some sample code to see how things are working
You need to use cloud functions for that:
https://firebase.google.com/docs/functions
Cloud Functions for Firebase lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests
First, you can register the user to a topic:
FirebaseMessaging.getInstance().subscribeToTopic("news");
https://firebase.google.com/docs/cloud-messaging/android/topic-messaging
Then when the message is sent to the database, you can use onWrite() in cloud functions which is a database trigger to be able to send the notification.
https://firebase.google.com/docs/functions/database-events

How to reflect push notifications sent by API on Firebase console

We are using Firebase API (CURL to https://fcm.googleapis.com/fcm/send) to send push notifications to multiple devices by topic but when we send them these are not reflected on the console. We can only see notifications sent by the console.
Thanks in advance!
firebaser here
The charts in the Firebase Notifications console only reflect messages sent from that console. It does not count messages sent by the Firebase Cloud Messaging API.
Also see my answer here: Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?

Firebase Cloud Messaging Statistics API

I'm using an application server to send messages by Firebase Cloud Messaging.
Firebase console does not list such a message which sent by app server.
When I use Firebase console directly to send messages, it will display some analysis on its own messages.
Like this:
The questions is, how can I access message statistics when I'm using an app servers?
As of August 2018 (announced in this blog post), API send stats can be viewed in the "Reports" tab of the FCM console. By default it only shows notification type messages, so if you're only sending data messages with the API, be sure to choose the "Data" filter.
Before August 2018:
The Firebase Notifications charts only show analytics for messages that were sent using the Firebase Notifications panel.
There is currently no public API to send Notifications to audiences. The web interface in the console is the only way to send them.
There is currently no API to feed your own FCM messages into the Firebase Notifications analytics panels.

Resources