notifee icon indicating copy to clipboard operation
notifee copied to clipboard

I'm updated my react native version to 0.73.4 and getInitialNotification() and onNotificationOpenedApp() does not work in iOS

Open DeepakSharma04 opened this issue 10 months ago • 4 comments

I have updated my React Native version to 0.73.4. In Android, notifications are working fine in the foreground, background, and quiet states. In iOS, foreground notifications are working, and when the user clicks on them, they navigate to the respective screen.

However, in the background and quiet states, notifications are coming through, but when the user clicks on them, neither getInitialNotification() nor onNotificationOpenedApp() is called, and no remoteMessage is received.

But with "@notifee/react-native": "5.7.0", , getInitialNotification() and onNotificationOpenedApp() are working.

package.json

 "react": "18.2.0",
 "react-native": "0.73.4",
 "@notifee/react-native": "^7.8.2",
 "@react-native-firebase/app": "^19.1.1",
 "@react-native-firebase/messaging": "^19.1.1",

DeepakSharma04 avatar Apr 01 '24 07:04 DeepakSharma04

Same here Can't get initial notification on press

kesha-antonov avatar Apr 11 '24 16:04 kesha-antonov

Same here Can't get initial notification on press

check the release note of version 7.0.0 and i installed version "@notifee/react-native": "5.7.0",

DeepakSharma04 avatar Apr 13 '24 07:04 DeepakSharma04

Same here Can't get initial notification on press

check the release note of version 7.0.0 and i installed version "@notifee/react-native": "5.7.0",

I've tried it - didn't help

kesha-antonov avatar Apr 17 '24 08:04 kesha-antonov

Unfortunately, it's expected behavior https://github.com/invertase/notifee/blob/main/docs-react-native/react-native/docs/release-notes.md#700

getInitialNotification is deprecated on iOS in favour of the PRESS event received by the onForegroundEvent event handler https://notifee.app/react-native/docs/events#app-open-events

vasylnahuliak avatar Apr 22 '24 11:04 vasylnahuliak

@DeepakSharma04 separately, does triggering EventType.DISMISSED for onForegroundEvent() work for you when swiping up on the notification?

psdewar avatar May 08 '24 06:05 psdewar

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Jun 05 '24 07:06 github-actions[bot]