[firebase_messaging] Android: messages sent to the FID from register() fail with UNREGISTERED; iOS works
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design, mobile
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Dart
- Stars
- 9.3k
- Forks
- 4.1k
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 49
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/flutterfire
-
[cloud_functions]: Apple platforms ignore custom domains passed as regionPossibly taken @ragavendranbala-TSL claimed this today. OpenNeeds Attention platform: ios platform: macos plugin: functions type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/flutterfire#19015 · 2 comments ·
Maintainers usually reply within 4 days
-
Needs Attention platform: web plugin: crashlytics type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 34/100
firebase/flutterfire#19014 · 1 comment ·
Maintainers usually reply within 4 days
-
[firebase_messaging]: Android getToken() errors lose their cause since firebase-messaging 25.1.0 ("FCM Registration failed!")Possibly taken @SelaseKay claimed this 3 days ago. OpenNeeds Attention platform: android plugin: messaging reproduced type: bug
Difficulty 4/5 3-5 days Newbie friendliness 22/100
firebase/flutterfire#18997 · 1 comment ·
Maintainers usually reply within 4 days
-
[firebase_storage]: Windows: getData() crashes with access violation (use-after-free of StorageReference in ReferenceGetData)Possibly taken @SelaseKay claimed this 3 days ago. Openblocked: customer-response platform: windows plugin: storage type: bug type: crash
Difficulty 4/5 3-5 days Newbie friendliness 35/100
firebase/flutterfire#18994 · 2 comments ·
Maintainers usually reply within 4 days
-
[firebase_auth_web]: Make the Auth emulator persistence from #18926 configurable instead of hard-gated on kDebugModePossibly taken @SelaseKay claimed this 1 day ago. OpenNeeds Attention platform: web plugin: auth type: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
firebase/flutterfire#18992 · 1 comment ·
Maintainers usually reply within 4 days
All issues in firebase/flutterfire
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hajisensai/Fushi#4543 · 3 comments ·
Maintainers usually reply within 1 day
-
[video_player] _updatePosition sets isCompleted=true after 500ms when duration is Duration.zeroOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
chriskelly/wish-together#212 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
spotiflacapp/SpotiFLAC-Mobile#984 ·