-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF-3275 Fix FCM iOS foreground desync #3314
base: master
Are you sure you want to change the base?
Conversation
@@ -143,6 +145,7 @@ class NotificationService: UNNotificationServiceExtension { | |||
self.modifiedContent?.body = message | |||
self.modifiedContent?.badge = NSNumber(value: 1) | |||
self.modifiedContent?.sound = .default | |||
self.modifiedContent?.userInfo = ["data": originalContent.userInfo] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need data
key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onMessage
of FCM Flutter is using data key for its payload.
var combinedUserInfo = userInfo | ||
combinedUserInfo["data"] = originalContent.userInfo | ||
self.modifiedContent?.userInfo = combinedUserInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please test notification on onBackground
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FCM background is not affected
Screen.Recording.2024-12-02.at.16.11.56.mov
|
did you tested with iOS v18.* @tddang-linagora |
Issue
Root cause
mutable-content: true
Resolved
Screen.Recording.2024-11-28.at.14.55.12.mov