-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] iOS Notification Images not displayed in background mode + setBackgroundMessageHandler not triggering #8041
Comments
same issue |
same issue image not working |
Have you followed the documentation for sending a notification with an image? https://rnfirebase.io/messaging/server-integration#send-messages-with-image Also - if your background message handler is not firing, it makes me wonder if there is a more fundamental issue with your setup that has been incorrectly configured. |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
I want to keep this open a bit - I'm closing in on a reproducer / test platform for FCM + Apple platforms and this is a case that should be validated |
+1 |
+1 |
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: