react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
731 stars 280 forks source link

Issue with Notification Image in Background and Kill State #430

Open virenradadiya opened 6 months ago

virenradadiya commented 6 months ago

Description

I am currently facing an issue with the integration of notification images in my application. The problem specifically occurs when the app is in the background or has been killed. In these states, the notification image is not being displayed, and I only see the title and body of the notification.

Expected Behavior I expect the notification to display the image even when the app is in the background or has been killed.

Additional Information

PushNotificationIOS.addNotificationRequest({
        id: remoteMessage?.messageId,
        title: remoteMessage?.notification?.title,
        body: remoteMessage?.notification?.body
        userInfo: remoteMessage.data,
        isSilent: false,
        isCritical: true,
 });

Thank you for addressing this issue promptly. Let me know if you need any further information.