Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?

11,771

Solution 1

When you send notifications from the Firebase Notifications console, you get statistics about how many people received and opened the messages. But there is no API (yet) for Firebase Notifications.

If you're using the Firebase Cloud Messaging API (https://fcm.googleapis.com/fcm/send), the message statistics don't show up in the Firebase Notifications console. You can (as AL. says) get delivery statistics in the Google Play Developer Console in that case.

Solution 2

firebase allows you to view sent/delivered/opened statuses by default from their website http://console.firebase.google.com at the notification section

but I am not sure about the parse.com implementations

also if you are a new comer to firebase let it collect user data for about 24 hours after successfully migrating to firebase I found that in the first day the notifications weren't really reporting immediately

Solution 3

I think you're looking for the FCM Diagnostics and Statistics feature.

However, this is not visible in the Firebase Console, only in your Google Play Developer Console. And the feature only works if your app is at least in Alpha Testing.

Share:
11,771
Mikael Engver
Author by

Mikael Engver

Senior System Developer at TV4 in Stockholm.

Updated on June 05, 2022

Comments

  • Mikael Engver
    Mikael Engver almost 2 years

    We are about to switch to Firebase notifiaction API from Parse.com (that are retiring their service in jan 2017) to send push notification to our android and iOS Apps.

    My question now is that I can't see any statistics about counts of successful deliveries and opens in the Firebase Console for a specific message ? The only thing we get when posting to https://fcm.googleapis.com/fcm/send is a message_id

    {"message_id":123456789}
    

    But I havn't seen any documentation on a api how to follow up a sent message with this message_id. And the Firebase console has only the these kind of stats for messages created in the Console Gui, not the one create through an api post.

    These stats was availible in Parse.com. But it seems as Firebase Cloud Messaging is a bit more low level, and perhaps these stats doesn't come out the box, so they might have to be custom made in a logging app etc by sending back events from the apps when messages as received and opened etc. Or is there a standardized way that I've missed when reading the Firebase Notification api docs ?