notifee
notifee copied to clipboard
I'm updated my react native version to 0.73.4 and getInitialNotification() and onNotificationOpenedApp() does not work in iOS
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",
Same here Can't get initial notification on press
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",
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
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
@DeepakSharma04 separately, does triggering EventType.DISMISSED for onForegroundEvent() work for you when swiping up on the notification?
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.