firebase / firebase/firebase-admin-node

How do you track notification messages sent through firebase-admin nodejs library?

Open
#2,356 3 comments 2 reactions 0 assignees View on GitHub
needs-triage
Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
3d 10h
Merged PRs (30d)
16

Description

When sending notifications using Node.js with the firebase-admin library and a Firebase token, the messages don't seem to be recorded under the Campaign Messages section in the Firebase dashboard(https://console.firebase.google.com/project/<{yourid}>/messaging). This means I can't view analytics like what percentage of users opened the notification, how many messages were sent, etc.

Is there a way to get campaign message tracking when sending notifications programmatically from a backend with the firebase-admin?

![image](https://github.com/firebase/firebase-admin-node/assets/20880839/d5b26921-60cc-488c-bc99-43537e5228e1)

![image](https://github.com/firebase/firebase-admin-node/assets/20880839/a32fb933-0b4b-4e6d-9075-2860ebe9b4e3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.