react-native/Libraries/PushNotificationIOS
Kyle Corbitt 57d45235ec Correctly passes localNotification to app on wakeup
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
2016-06-10 05:28:41 -07:00
..
RCTPushNotification.xcodeproj Text highlighting on iOS 2015-07-24 08:41:58 -08:00
PushNotificationIOS.js Improve PushNotificationIOS documentation 2016-06-09 16:28:24 -07:00
RCTPushNotificationManager.h Updated Linking and PushNotificationIOS modules to use NativeEventEmitter 2016-05-27 10:28:23 -07:00
RCTPushNotificationManager.m Correctly passes localNotification to app on wakeup 2016-06-10 05:28:41 -07:00