[firebase_messaging] Android: messages sent to the FID from register() fail with UNREGISTERED; iOS works
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend-api-design, mobile
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Dart
- Star
- 9.3k
- Fork
- 4.1k
- Merge trung bình
- 4 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 49
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/flutterfire
-
[cloud_functions]: Apple platforms ignore custom domains passed as regionCó thể đã có người làm @ragavendranbala-TSL đã nhận hôm nay. Đang mởNeeds Attention platform: ios platform: macos plugin: functions type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
firebase/flutterfire#19015 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Needs Attention platform: web plugin: crashlytics type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 34/100
firebase/flutterfire#19014 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[firebase_messaging]: Android getToken() errors lose their cause since firebase-messaging 25.1.0 ("FCM Registration failed!")Có thể đã có người làm @SelaseKay đã nhận 3 ngày trước. Đang mởNeeds Attention platform: android plugin: messaging reproduced type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
firebase/flutterfire#18997 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[firebase_storage]: Windows: getData() crashes with access violation (use-after-free of StorageReference in ReferenceGetData)Có thể đã có người làm @SelaseKay đã nhận 4 ngày trước. Đang mởblocked: customer-response platform: windows plugin: storage type: bug type: crash
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
firebase/flutterfire#18994 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[firebase_auth_web]: Make the Auth emulator persistence from #18926 configurable instead of hard-gated on kDebugModeCó thể đã có người làm @SelaseKay đã nhận 2 ngày trước. Đang mởNeeds Attention platform: web plugin: auth type: enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
firebase/flutterfire#18992 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của firebase/flutterfire
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hajisensai/Fushi#4543 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[video_player] _updatePosition sets isCompleted=true after 500ms when duration is Duration.zeroĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
dart-lang/dart_style#1928 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
chriskelly/wish-together#212 ·
Maintainer thường phản hồi trong vòng 1 ngày