[🐛] iOS Notification Images not displayed in background mode + setBackgroundMessageHandler not triggering #8041
Labels
blocked: customer-response
platform: ios
plugin: messaging
FCM only - ( messaging() ) - do not use for Notifications
type: bug
New bug report
Bug Summary:
I followed the iOS Notification Images documentation for showing an image in a push notification while the app is in the background, but the image does not display.
Additionally, the setBackgroundMessageHandler function is not being triggered as expected in background mode on iOS.
Environment Info:
React: 18.3.1
React Native: 0.75.2
@react-native-firebase/app: "^21.0.0",
@react-native-firebase/messaging": "^21.0.0",
Node: 18.19.0
Yarn: 3.6.4
NPM: 10.2.3
iOS SDK: 17.5
Testing Device: Real device ios version (17.6.1)
Steps to Reproduce:
Set up Firebase Cloud Messaging and configure it according to the iOS Notification Images documentation.
Use setBackgroundMessageHandler to handle background messages.
Send a notification with an image URL in the payload.
Test the app in background mode on iOS.
Expected Behavior:
The image should be displayed in the notification when the app is in background mode.
The setBackgroundMessageHandler should trigger when a message is received in the background.
Actual Behavior:
The image does not appear in the notification when the app is in background mode.
The setBackgroundMessageHandler function is not triggered.
The text was updated successfully, but these errors were encountered: