firebase / firebase/firebase-admin-java

Duplicate Notifications Delivered through FC

Abierto
#863 3 comentarios 0 reacciones 0 asignados Ver en GitHub
api: messaging
Lenguaje dominante
Java
Estrellas
620
Forks
305
Merge medio
3 h 23 min
PR fusionados (30 d)
1

Descripción

### 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)}")
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No repository file or test is named. Start at the FirebaseMessaging.getInstance.send call and compare the server message ID and send logs with the Notification Service Extension receipt logs. Done requires identifying whether duplication originates in the SDK, Firebase Cloud Messaging, or downstream delivery, with a reproducible verification or documented external cause.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
firebase, java
Área
api, backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.