registerNotificationOpened isn't working as expected in iOS
registerNotificationOpened method isn't working as expected in the scenario:
when the app receives a notification in the foreground state and I open the app post killing the app by tapping on a notification.
But the given method is working as expected when the app receives a notification in the killed and background states and opens the app from the killed state by tapping a notification.
Notifications.events().registerNotificationOpened((notification: Notification, completion: () => void, action: NotificationActionResponse) => {
completion();
});
Using the latest version: 5.1.0
RN version:0.72.5
iOS: 17.1.2
Similar issue here. The workaround was using notifee library for iOS
useEffect(() => {
if (Platform.OS === 'ios') {
return notifee.onForegroundEvent(({type, detail}) => {
switch (type) {
case EventType.PRESS:
// Handle notification payload
}
break;
}
});
}
}, []);
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.