react-native/Libraries/PushNotificationIOS
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
..
RCTPushNotification.xcodeproj Fix warnings in React.xcodeproj 2017-03-23 11:36:17 -07:00
PushNotificationIOS.js Integrare UNUserNotification 2017-03-23 12:02:25 -07:00
RCTPushNotificationManager.h Handle push notifications on iOS 2017-02-03 11:58:30 -08:00
RCTPushNotificationManager.m Integrare UNUserNotification 2017-03-23 12:02:25 -07:00