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

Research direction

Start with the firebase-admin Node.js messaging entry point and the Firebase Messaging Campaign Messages dashboard described in the issue. Determine whether notifications sent with a Firebase token can provide the requested campaign analytics, and document the supported workflow or limitation. There are no repository files or tests named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.