react-native/Libraries
Jonathan Stanton e000b71845 Remote notification completion handler
Summary:
**Motivation**
To allow handling of remote notifications using the preferred delegate [application:didReceiveRemoteNotification:fetchCompletionHandler](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/#//apple_ref/occ/intfm/UIApplicationDelegate/application:didReceiveRemoteNotification:fetchCompletionHandler:).

React native right now is setup to use [application:didReceiveRemoteNotification](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/#//apple_ref/occ/intfm/UIApplicationDelegate/application:didReceiveRemoteNotification:) which doesn't give the engineer the option to call back to the app via a completion handler and inform the app that it is done with handling the push notification.

The primary reason to use the `fetchCompletionHandler` would be to wake up the app to fetch updates so the next time the user opens the app it will be up to date.

A new method will be exposed: `PushNotificationIOS#
Closes https://github.com/facebook/react-native/pull/8040

Differential Revision: D4081766

Pulled By: bestander

fbshipit-source-id: 2819061bd3a926cb1c9c743af5aabab8c0faec3d
2016-10-26 21:43:48 -07:00
..
ART Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
ActionSheetIOS ActionSheetIOS - Pass URL, not file contents to UIActivityViewController for file URLs. 2016-09-06 04:43:36 -07:00
AdSupport Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Alert fix typo in Alert.js 2016-10-14 08:13:55 -07:00
Animated Fixed uiexplorer legocastle starting script 2016-10-19 08:44:27 -07:00
AppState Remove deprecated APIs and modules 2016-10-11 07:43:52 -07:00
BatchedBridge Reorganize core JS files 2016-10-11 10:14:28 -07:00
BugReporting Unrevert D3518381 2016-07-06 12:58:41 -07:00
CameraRoll Update file for Markdown link syntax 2016-10-16 15:28:42 -07:00
Components Fix for TouchableNativeFeedback having Animated.Component direct child 2016-10-25 00:28:37 -07:00
Core Reorganize core JS files 2016-10-11 10:14:28 -07:00
CustomComponents Navigator - Fix wrong scene transformation after pop 2016-10-26 00:13:35 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter Cleanup: Remove `@typechecks` 2016-10-12 19:28:42 -07:00
Experimental fix FlowFixMe in SwipeableQuickActionButton 2016-10-24 09:58:53 -07:00
Geolocation RCTLocationObserver: Fix reporting of timeout error 2016-09-21 14:28:43 -07:00
Image Moving the jest configuration from jest-react-native to react native. 2016-10-17 08:44:05 -07:00
Inspector Clean unused import modules. 2016-10-16 11:13:40 -07:00
Interaction Documentation fix: dx vs. x0 2016-10-11 08:13:39 -07:00
LayoutAnimation RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
Linking Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LinkingIOS Remove deprecated APIs and modules 2016-10-11 07:43:52 -07:00
Modal Reverted commit D4027388 2016-10-16 04:13:42 -07:00
NativeAnimation Add support for springs for NativeAnimated on iOS 2016-10-21 04:29:03 -07:00
NavigationExperimental Reverted commit D4027388 2016-10-16 04:13:42 -07:00
Network Make sure xhr req header's value is String type 2016-10-25 22:29:35 -07:00
Performance Reorganize core JS files 2016-10-11 10:14:28 -07:00
PermissionsAndroid Docs fix: remove confusing typo 2016-09-19 14:46:12 -07:00
PushNotificationIOS Remote notification completion handler 2016-10-26 21:43:48 -07:00
RCTTest Travis CI reliability fixes: preload package manager and increase tim… 2016-10-16 15:43:44 -07:00
ReactNative Reverted commit D4027388 2016-10-16 04:13:42 -07:00
Sample Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Settings Apple TV support 2: Xcode projects and CI (scripts/objc-test.sh) 2016-10-05 07:28:44 -07:00
Share Add Share module 2016-07-25 03:43:29 -07:00
Storage Auto-fix lint errors 2016-08-09 06:43:46 -07:00
StyleSheet RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
Text RN TextInput: don't let user more than maxLength when TextInput already exceeds it 2016-10-18 08:13:41 -07:00
Utilities Reorganize core JS files 2016-10-11 10:14:28 -07:00
Vibration Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
WebSocket ios:websocket:exectuor : Grab port from Bundle URL 2016-10-12 08:43:37 -07:00
react-native RN: Require {react/lib/ => }ReactNative 2016-10-14 18:59:10 -07:00
vendor Cleanup clear/set/throwImmediate 2016-08-12 07:28:38 -07:00
Promise.js Make onUnhandled safe for undefined errors 2016-08-02 07:58:28 -07:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00