mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
57d45235ec
Summary: Currently if an RN app is started in response to a remote notification, that notification's data is available on startup via `PushNotificationIOS.popInitialNotification()`. However, if the app is started in response to a "local" notification, that information is never passed in. This PR modifies the `popInitialNotification` behavior so it will return the notification used to launch the app, no matter if it was local or remote. I've tested this change in my app and ensured that when the app is woken up with a `localNotification` it's passed in to `PushNotificationIOS.popInitialNotification`. I've also tested that the `localNotification` event continues working as before. Closes https://github.com/facebook/react-native/pull/7765 Differential Revision: D3417267 Pulled By: nicklockwood fbshipit-source-id: 0b5b432e9a75dda7d3c50289a3bf0f1c1ffcf061