图片不显示在 Notification React Native Firebase 中

Image Doesn't show in Notification React Native Firebase

我在 rnfirebase v5.6.0 的通知中遇到图像问题。 我从消息中收到图像并且图像 link 正确,但无法在通知中显示图像。 它不会一直发生,它会在一些未知的情况下发生。 这是我的显示通知代码


const notification = new firebase.notifications.Notification({
 sound: 'default',
 show_in_foreground: true,
})
 .setNotificationId(notificationId)
 .setTitle(notificationData.title)
 .setBody(notificationData.body)
 .setData(notificationData.data)
 .android.setColor('#ffffff')
 .android.setAutoCancel(true)
 .android.setChannelId('channelId')
 .android.setSmallIcon('ic_stat_name')
 .android.setPriority(firebase.notifications.Android.Priority.Max)
 .android.setBigPicture(message._android._bigPicture.picture)
 .android.setLargeIcon(message._android._largeIcon);

firebase.notifications().displayNotification(notification);

有关更多信息,我的 react native 版本是 0.61.5,我的 react-native-firebase 版本是 5.6.0。

将 react-native-firebase 软件包更新到 6.0.0 及更高版本并使用 notifee 软件包进行通知