react-native/Libraries
Gustavo Perdomo 3df654e28e Integrare UNUserNotification
Summary:
Implementing removeAllDeliveredNotifications and removeDeliveredNotifications for remove notifications from notification center, and getDeliveredNotifications

Thanks for submitting a PR! Please read these instructions carefully:

- [x] Explain the **motivation** for making this change.
- [x] Provide a **test plan** demonstrating that the code is solid.
- [x] Match the **code formatting** of the rest of the codebase.
- [x] Target the `master` branch, NOT a "stable" branch.

Currently, calling PushNotificationIOS.cancelAllLocalNotifications not remove the notification from the Notification Center

In iOS 10, a new UNUserNotification class was introduced, this class has a method which get and remove the notifications from notification center

This PR try to solve that.

In my case, i'm working with an messaging app, every message is a new notification, when the user tap a notification, the app is opened and the rest of notifications should be gon
Closes https://github.com/facebook/react-native/pull/13036

Differential Revision: D4761828

Pulled By: javache

fbshipit-source-id: 216e44a64f1bf88b5ae3045d1fa6eca8a1278a71
2017-03-23 12:02:25 -07:00
..
ART Better error for ART <Group /> 2016-12-07 17:13:42 -08:00
ActionSheetIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
AdSupport Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Alert Export Alert's type ButtonsArray for external use 2017-03-06 12:44:47 -08:00
Animated Fix Animated.event attach/detach on component re-render 2017-03-17 22:15:40 -07:00
AppState Fix the website build 2017-02-21 09:11:01 -08:00
BatchedBridge Ignore mocks in packager 2017-02-24 13:01:34 -08:00
BugReporting Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CameraRoll Use checkPropTypes instead of directly calling PropTypes 2017-03-22 16:04:12 -07:00
Components ReactNative moved View.propTypes to ViewPropTypes 2017-03-23 09:15:42 -07:00
Core Warn when timers longer than 1 min are set pending AlarmManager support 2017-03-16 15:19:02 -07:00
CustomComponents Fix usages of ReactComponentWithPureRenderMixin 2017-03-23 06:33:24 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter Only use `EventValidator` in development mode 2017-03-21 10:09:38 -07:00
Experimental Move new components out of `Experimental` directory 2017-03-01 09:16:05 -08:00
Geolocation Update Geolocation.js 2017-01-31 11:58:30 -08:00
Image Expose RCTImageLocalAssetURL as a utility 2017-03-17 17:02:06 -07:00
Inspector work around inspector redbox due to Fiber 2017-02-21 15:45:45 -08:00
Interaction Fix license headers 2017-03-08 00:52:17 -08:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Use checkPropTypes instead of directly calling PropTypes 2017-03-22 16:04:12 -07:00
Linking Fixes missleading comment on getInitialURL 2017-03-21 16:34:42 -07:00
LinkingIOS Move RCTLinkingManager to the main thread 2017-03-16 16:02:38 -07:00
Modal Add property to force HW acceleration on Android for modal windows 2016-12-14 10:28:33 -08:00
NativeAnimation Native Animated - Support multiple events attached to the same prop 2017-03-09 15:30:28 -08:00
NavigationExperimental Add deprecation warning for NavigationExperimental 2017-03-02 11:00:46 -08:00
Network BREAKING: iOS: Support withCredentials flag in XHRs 2017-03-08 06:15:15 -08:00
Performance Support QuickPerformanceLogger.js in the old bridge 2017-02-16 11:33:48 -08:00
PermissionsAndroid inline a bunch of NativeModule requires 2017-02-17 16:49:38 -08:00
PushNotificationIOS Integrare UNUserNotification 2017-03-23 12:02:25 -07:00
RCTTest Tease apart React and RCTBatchedBridge targets 2017-03-21 18:31:23 -07:00
ReactNative Refactor measuring app require time 2017-03-22 08:00:27 -07:00
Renderer ReactNativeFiber findNodeHandle() bugfix 2017-03-23 11:03:43 -07:00
Sample Fix missing RCTBridgeModule.h 2017-01-31 11:13:50 -08:00
Settings Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Share Update Share.js. Fixed bad grammar 2016-11-23 11:28:29 -08:00
Storage correctly order ASyncStorage 2017-02-21 15:18:40 -08:00
StyleSheet Add display:none support to react native 2017-03-01 09:16:05 -08:00
Text Improved implementation of placeholer feature in RCTUITextView 2017-03-21 13:02:22 -07:00
Utilities Add flow typing to PerformanceLogger 2017-03-22 05:38:05 -07:00
Vibration Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
WebSocket Remove unused websocket-executor-name and websocket-executor-port options 2017-03-22 05:38:04 -07:00
react-native Remove React addons from react-native-implementation 2017-03-22 17:46:01 -07:00
vendor Remove `copyProperties` 2017-03-21 08:01:58 -07:00
Promise.js Allow Promise to display error strings and not just error objects. 2017-03-09 14:30:57 -08:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00