Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Messaging]firebase-admin is not able deliver Notification in Android Edge

Aperta
#2,781 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@chong-shao ci sta già lavorando.

Dal 24/2/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

api: messaging
[READ] Step 1: Are you in the right place?

Able to generate token but await this.app.messaging().sendEachForMulticast(message) is working all other browser but dont know only android Edge has the problem.

[REQUIRED] Step 2: Describe your environment
  • Operating System version: _____ Mac OS
  • Firebase SDK version: _____
  • Firebase Product: _____ FCM
  • Node.js version: _____16.0.0
  • NPM version: _____

Device Information
WhatsApp Image 2024-11-22 at 11 51 33

[REQUIRED] Step 3: Describe the problem

In Android Chrome, I can successfully send notifications, but in Android Edge, notifications are not working. The sendEachForMulticast(message) method is returning success

Steps to reproduce:

Send the notification either through the Firebase Console or by using messaging.sendEachForMulticast(message)

Relevant Code:

import admin from 'firebase-admin'
admin.initializeApp({
credential: admin.credential.applicationDefault(),
});

// This registration token comes from the client FCM SDKs.
const edge = "dHoMX5A_-....................fSbpmNzTKYzjtjq6TaUaesUgnAfA0"
const chrome = "fGU9Zu8k7xFt.....................................vyEo-uKqQ7lUhQfjWQt2J1E"

const registrationToken = edge;

const message = {
data: {
score: '850',
time: '2:45'
},
notification: {
title: "I am title",
body: "I am Body",
},
tokens: [registrationToken]
};

const messaging = admin.messaging();
messaging.sendEachForMulticast(message)
.then((response) => {
console.log('Successfully sent message:', response);
})
.catch((error) => {
console.log('Error sending message:', error);
});

// TODO(you): code here to reproduce the problem

No Notification and no console error in Android Edge

Lingua principale
TypeScript
Stelle
1.7k
Fork
419
Merge medio
4g 20h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/firebase-admin-node

Tutte le issue di firebase/firebase-admin-node

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.