react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

[iOS] getInitialNotification returnsthe notification even when the app was opened without tapping it

Open andrejborstnik opened this issue 2 years ago • 2 comments

Steps to reproduce

  • use iOS 17.0.1+
  • Kill the app, and put it in the DEAD state
  • Receive a push notification
  • Do not tap the notification, open the app from the home screen instead
  • getInitialNotification() -> returns a notification object

Expected

  • getInitialNotification() -> returns undefined

andrejborstnik avatar Dec 01 '23 10:12 andrejborstnik

@andrejborstnik did you find any solution?

zabojad avatar Feb 05 '24 17:02 zabojad

We fixed it like this in our fork https://github.com/ExodusMovement/react-native-notifications/pull/4 https://github.com/ExodusMovement/react-native-notifications/pull/7. Not sure if that works for all use-cases or on the latest version of upstream

andrejborstnik avatar Feb 05 '24 20:02 andrejborstnik

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 31 '25 22:01 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 24 '25 23:02 stale[bot]