[FR] Add support for cross-project server message sending
@chong-shao ya está trabajando en esto.
Desde el 21/11/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is your feature request related to a problem? Please describe.
We were using the firebase admin SDK and a special service account with key resident in the same project as the apps (the servers are in different projects).
We wanted to remove usage of this separate service account and use the service account bound to the workload instead which is resident in a different project
This is possible from the API perspective as long as the SA has Firebase Cloud Messaging API Admin role in the project that hosts the firebase apps (as mentioned here: https://firebase.google.com/docs/cloud-messaging/send/v1-api#authorize-cross-project)
This was not possible with the firebase admin SDK and so we had to do it directly by calling the FCM API via an http client (Axios in Nodejs) after fetching the Oauth2 token for the service account from Google (as described in the link above)
It would be better if this was supported natively in the firebase admin SDK (you could specify sending to a different project than the one in the SA credentials)
Describe the solution you'd like
Firebase admin SDK supports working with an SA from a different project than the firebase apps (provided the SA has the necessary Firebase Cloud Messaging API Admin role in the project that hosts the firebase app)
Describe alternatives you've considered
The less appealing alternative of fetching the SA Oauth2 token and calling the API directly
Additional context
Add any other context, code samples or screenshots about the feature request here.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.7k
- Forks
- 419
- Merge medio
- 4 d 20 h
- PR fusionados (30 d)
- 16
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de firebase/firebase-admin-node
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 comentarios · 1 asignado ·
-
api: messaging
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 comentario · 1 asignado ·
Todos los issues de firebase/firebase-admin-node
Issues similares
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Crush Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
ElementsProject/cln-application#167 · 1 comentario · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Quantco/pnpm-licenses#17 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100