React-native-Firebase push-уведомления не могут отображаться на переднем плане, когда приложение было закрыто.Если приложение открыто, то нет проблем с push-уведомлениями, они отображаются нормально.
async createNotificationListeners() {
this.notificationListener = firebase.notifications().onNotification((notification) => {
const { title, body } = notification;
const localNotification = new firebase.notifications.Notification({
sound: 'default',
show_in_foreground: true,
})
firebase.notifications().displayNotification(localNotification)
.catch(err => console.error(err));
});