[firebase_messaging] Android: messages sent to the FID from register() fail with UNREGISTERED; iOS works
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- backend-api-design, mobile
Línea de trabajo
Start by tracing FirebaseMessaging.instance.register() and the Android onRegistered path that returns the FID; compare it with the iOS registration flow, which the report says works. Reproduce with the listed manifest setting and send an HTTP v1 message to the returned FID. Done means Android FID registration supports delivery without the reported 404 UNREGISTERED response.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
With FID-based registration (FirebaseMessaging.instance.register() + onRegistered), every FCM HTTP v1 send to the FID returned on Android fails with 404 UNREGISTERED (messaging/installation-id-not-registered).
Reproducing the issue
- Add to AndroidManifest.xml:
- In Dart:
FirebaseMessaging.instance.onRegistered.listen((fid) => sendToBackend(fid));
await FirebaseMessaging.instance.register(); - Send an FCM HTTP v1 message to that FID (firebase-admin
send({ fid, notification })or a direct REST call). - → 404 UNREGISTERED. The same steps on iOS (FirebaseMessagingInstallationIdEnabled = true in Info.plist) deliver the message.
Firebase Core version
5.2.0
Flutter Version
3.50.1
Relevant Log Output
# Device (adb logcat, FirebaseMessaging VERBOSE)
D/FirebaseMessaging: Invoking onNewToken for app: [DEFAULT]
D/FirebaseMessaging: onServiceConnected: ComponentInfo{<package>/io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingService}
I/flutter: FID: <FID>
# Server (firebase-admin)
code: messaging/installation-id-not-registered
{
"error": {
"code": 404,
"message": "NotRegistered",
"status": "NOT_FOUND",
"details": [{ "@type": "type.googleapis.com/google.firebase.fcm.v1.FcmError", "errorCode": "UNREGISTERED" }]
}
}
Flutter dependencies
Expand Flutter dependencies snippet
firebase_core 5.2.0
firebase_core_platform_interface 8.2.0
firebase_messaging 17.1.0
firebase_messaging_platform_interface 4.12.0
Additional context and comments
Device: OnePlus 6T, Android 15, Google Play services 26.45.31.
- Lenguaje dominante
- Dart
- Estrellas
- 9.3k
- Forks
- 4.1k
- Merge medio
- 4 d 17 h
- PR fusionados (30 d)
- 49
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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/flutterfire
-
[cloud_functions]: Apple platforms ignore custom domains passed as regionPosiblemente ocupada @ragavendranbala-TSL la tomó hoy. AbiertoNeeds Attention platform: ios platform: macos plugin: functions type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
firebase/flutterfire#19015 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
Needs Attention platform: web plugin: crashlytics type: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 34/100
firebase/flutterfire#19014 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
[firebase_messaging]: Android getToken() errors lose their cause since firebase-messaging 25.1.0 ("FCM Registration failed!")Posiblemente ocupada @SelaseKay la tomó hace 3 días. AbiertoNeeds Attention platform: android plugin: messaging reproduced type: bug
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
firebase/flutterfire#18997 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
[firebase_storage]: Windows: getData() crashes with access violation (use-after-free of StorageReference in ReferenceGetData)Posiblemente ocupada @SelaseKay la tomó hace 4 días. Abiertoblocked: customer-response platform: windows plugin: storage type: bug type: crash
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
firebase/flutterfire#18994 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
[firebase_auth_web]: Make the Auth emulator persistence from #18926 configurable instead of hard-gated on kDebugModePosiblemente ocupada @SelaseKay la tomó hace 2 días. AbiertoNeeds Attention platform: web plugin: auth type: enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
firebase/flutterfire#18992 · 1 comentario ·
Los mantenedores suelen responder en 4 días
Todos los issues de firebase/flutterfire
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hajisensai/Fushi#4543 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[video_player] _updatePosition sets isCompleted=true after 500ms when duration is Duration.zeroAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
dart-lang/dart_style#1928 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
chriskelly/wish-together#212 ·
Los mantenedores suelen responder en 1 día