firebase_messaging: We are experiencing an application crash on iOS when a remote notification is received.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
Start by inspecting FLTFirebaseMessagingPlugin.m around line 518 and the application:didReceiveRemoteNotification:fetchCompletionHandler: callback, then trace how PushKit notifications reach it. The report lacks a complete dependency list and a minimal reproduction, so first compare the crash path with the plugin’s iOS notification handling and identify the failing message dispatch. Done means reproducing or isolating the crash and confirming a safe callback path with a regression test.
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
No response
Which platforms are affected?
iOS
Description
[REQUIRED] Environment info
firebase-tools: Not applicable (Issue related to Firebase Messaging Flutter plugin).
Platform: iOS (Flutter application)
Firebase Messaging: firebase_messaging 15.0.4
Flutter version: 3.44.3
iOS version: 27.0.1
[REQUIRED] Test case
We are experiencing an application crash on iOS when a remote notification is received.
The crash occurs on the main thread inside the Firebase Messaging Flutter plugin, specifically in the following method:
-[FLTFirebaseMessagingPlugin application:didReceiveRemoteNotification:fetchCompletionHandler:]
The crash stack trace indicates that the failure occurs while UIKit/PushKit is processing an incoming remote notification payload.
[REQUIRED] Actual behavior
The application crashes on the iOS main thread while processing an incoming remote notification.
The crash occurs inside the Firebase Messaging plugin at:
FLTFirebaseMessagingPlugin.m:518
The top-level exception points to objc_msgSend, suggesting that an Objective-C message dispatch is failing during notification processing.
This issue appears to involve the interaction between Firebase Messaging and PushKit notification handling.
We would appreciate help identifying the root cause and understanding whether this is a known issue with Firebase Messaging's iOS notification handling.
Reproducing the issue
[REQUIRED] Steps to reproduce
Integrate Firebase Messaging into a Flutter iOS application.
Configure remote push notification handling.
Send or receive a remote notification through the configured PushKit/notification flow.
When iOS invokes the remote notification callback, the application occasionally crashes on the main thread.
Crash logs consistently point to FLTFirebaseMessagingPlugin.m, specifically the application:didReceiveRemoteNotification:fetchCompletionHandler: method.
[REQUIRED] Expected behavior
Firebase Messaging should safely handle incoming remote notification payloads without causing an application crash.
The notification callback should complete successfully, and the application should continue running normally.
Firebase Core version
3.3.0
Flutter Version
3.44.3
Relevant Log Output
Crashed: com.apple.main-thread
0 libobjcMsgSend.dylib
objc_msgSend + 8
1 Runner
-[FLTFirebaseMessagingPlugin application:didReceiveRemoteNotification:fetchCompletionHandler:]
+ 518 (FLTFirebaseMessagingPlugin.m:518)
2 UIKitCore
-[UIApplication pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:]
3 PushKit
-[PKPushRegistry remoteUserNotificationPayloadReceived:completionHandler:]
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
- 主要语言
- Dart
- 星标
- 9.3k
- 派生
- 4.1k
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 70
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/flutterfire 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
firebase/flutterfire#18908 ·
维护者通常 1 天内回复
-
[📚] App Check Windows Support still N/A on Readme可能已有人在做 @Adrianogba 于 1 天前认领。 未关闭good first issue type: documentation
难度 1/5 1 小时以内 新手友好度 35/100
firebase/flutterfire#18913 ·
维护者通常 1 天内回复
-
[📚] Data Connect Windows Support still N/A on Readme可能已有人在做 @Adrianogba 于 1 天前认领。 未关闭good first issue type: documentation
难度 1/5 1 小时以内 新手友好度 35/100
firebase/flutterfire#18911 ·
维护者通常 1 天内回复
-
[📚] Realtime Database Windows Support still N/A on Readme可能已有人在做 @Adrianogba 于 1 天前认领。 未关闭good first issue type: documentation
难度 1/5 1 小时以内 新手友好度 1/100
firebase/flutterfire#18909 ·
维护者通常 1 天内回复
-
[cloud_firestore][Android]: query snapshots() can deliver an older snapshot after a newer one since 6.7.0可能已有人在做 @KafuiDumeloo 于 2 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
firebase/flutterfire#18904 ·
维护者通常 1 天内回复
查看 firebase/flutterfire 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
customerio/customerio-flutter#441 ·
维护者通常 2 天内回复
-
JsonParseNode.getObjectValue returns non-null model on null JSON nodes and duplicates lifecycle hooks可能已有人在做 @hardikkaurani 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
microsoft/kiota-dart#170 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
fable-compiler/Fable#5280 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
immich-app/immich#33043 ·
维护者通常 1 天内回复
-
[FR] 希望能折叠搜索历史未关闭enhancement
难度 2/5 1-3 小时 新手友好度 68/100
bggRGjQaUbCoE/PiliPlus#3503 ·
维护者通常 1 天内回复