[firebase_messaging] Android: messages sent to the FID from register() fail with UNREGISTERED; iOS works
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Dart
- スター
- 9.3k
- フォーク
- 4.1k
- 平均マージ
- 4日 17時間
- マージ済み PR(30日)
- 49
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/flutterfire のほかの issue
-
[cloud_functions]: Apple platforms ignore custom domains passed as region対応中かも @ragavendranbala-TSL が今日担当しました。 オープンNeeds Attention platform: ios platform: macos plugin: functions type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
firebase/flutterfire#19015 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
Needs Attention platform: web plugin: crashlytics type: enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 34/100
firebase/flutterfire#19014 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[firebase_messaging]: Android getToken() errors lose their cause since firebase-messaging 25.1.0 ("FCM Registration failed!")対応中かも @SelaseKay が 3 日前に担当しました。 オープンNeeds Attention platform: android plugin: messaging reproduced type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
firebase/flutterfire#18997 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[firebase_storage]: Windows: getData() crashes with access violation (use-after-free of StorageReference in ReferenceGetData)対応中かも @SelaseKay が 4 日前に担当しました。 オープンblocked: customer-response platform: windows plugin: storage type: bug type: crash
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
firebase/flutterfire#18994 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
[firebase_auth_web]: Make the Auth emulator persistence from #18926 configurable instead of hard-gated on kDebugMode対応中かも @SelaseKay が 2 日前に担当しました。 オープンNeeds Attention platform: web plugin: auth type: enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
firebase/flutterfire#18992 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
firebase/flutterfire の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hajisensai/Fushi#4543 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[video_player] _updatePosition sets isCompleted=true after 500ms when duration is Duration.zeroオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
dart-lang/dart_style#1928 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
chriskelly/wish-together#212 ·
メンテナーはふだん 1 日以内に返信