Мои уведомления отображаются, даже когда приложение убито, но onNotificationOpened не вызывается, когда я нажимаю на уведомление и происходит сбой приложения
this.notificationOpenedListener=
firebase.notifications().onNotificationOpened((
notificationOpen: NotificationOpen) => {
const action = notificationOpen.action;
const notification: Notification = notificationOpen.notification;
var data = notification._data;
if (data.action_target.toUpperCase() == "PROFILE".toUpperCase()) {
Actions.profile();
}
else if (data.action_target.toUpperCase() == "Leaderboard".toUpperCase()) {
Actions.skills();
}
else if (data.action_target.toUpperCase() == "home".toUpperCase()) {
Actions.homepage();
}
});