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

Duplicate Notifications Delivered through FC

Aperta
#863 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
firebase, java
Ambito
api, backend

Direzione di ricerca

Non è indicato alcun file del repository né alcun test. Inizia dalla chiamata a FirebaseMessaging.getInstance.send e confronta l'ID del messaggio lato server e i log di invio con i log di ricezione della Notification Service Extension. Il lavoro è completato quando viene identificato se la duplicazione ha origine nell'SDK, in Firebase Cloud Messaging o nella consegna a valle, con una verifica riproducibile o una causa esterna documentata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

api: messaging
Environment:
  • Operating System version: Java 8
  • Firebase SDK version: 10.11.0
  • Library version: 8.1.0
  • Firebase Product: messaging (auth, database, storage, etc)
Problem:

We're seeing multiple instances of a single message being sent via Cloud Messaging using the Firebase Admin SDK, and users seeing duplicates on iOS. We have logs both on the server side, directly before and after on the server side, and on the client side upon receipt in a Notification Service Extension.

We've verified through these logs (tied to data from user screenshots), that the message is sent only once on our server, we receive a success response from the Firebase SDK, and the user receives that exact notification twice.

Server Logs:
16:08:16.542 | al-pool-2228 |  INFO | w.SendNotificationWorker$ | 303 | 31ec5101-b43e-4519-99a1-9bb3650471c7: Successfully sent notification 2273480
16:08:16.537 | al-pool-7377 |  INFO | .n.NotificationDispatcher | 342 | Notification id 2273480 sent status true
16:08:16.537 | al-pool-7377 |  INFO | c.s.f.s.FirebaseService$  | 158 | Submitted notification to Firebase with messageId: projects/{redacted}/messages/{redacted} for notification id: 2273480
16:08:16.336 | al-pool-4602 |  INFO | w.SendNotificationWorker$ |  92 | 31ec5101-b43e-4519-99a1-9bb3650471c7: Sending notification 2273480
Client Logs:
16:08:21.092 AM -0700 |	INFO | {redacted} | NotificationService | did receive notification | notificationId = 2273480
16:08:21.091 AM -0700	| INFO | {redacted} | NotificationService | did receive notification | notificationId = 2273480
Relevant Code:
val messageId = FirebaseMessaging.getInstance.send(messageBuilder.build)
logger.info(s"Submitted notification to Firebase with messageId: $messageId for notification id: ${notificationId
          .getOrElse(0L)}")
Lingua principale
Java
Stelle
620
Fork
305
Merge medio
4g 9h
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

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-java

Tutte le issue di firebase/firebase-admin-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.