55 Commits

Author SHA1 Message Date
roiberlin
c4535d682e add RNNotificationCenterMulticast (#411) 2019-11-20 17:43:57 +02:00
yogevbd
4908c56ea6 Add test coverage on native iOS 2019-07-26 14:37:44 +03:00
yogevbd
25b5baf86f Add e2e tests and final adjustments 2019-07-10 20:57:06 +03:00
yogevbd
138636054e Fix pushKit 2019-07-09 13:10:31 +03:00
yogevbd
235cffd8a4 WIP 2019-07-09 00:42:38 +03:00
yogevbd
df53f390fd WIP 2019-07-08 01:31:51 +03:00
yogevbd
e819748f54 WIP 2019-07-07 19:50:18 +03:00
yogevbd
6a3809abec WIP 2019-07-07 15:45:04 +03:00
yogevbd
10730bed07 Refactor, split code, upgrade react 2019-07-07 12:41:53 +03:00
yogevbd
911765e24f WIP 2019-07-04 16:37:32 +03:00
Artal Druk
882775fb59 fixed merge issues after revert commits 2019-05-02 16:42:13 +03:00
Artal Druk
99717b1463 Revert "[WIP] iOS deprecated API replacement (#295)"
This reverts commit 498dd34b70.
2019-05-02 15:35:16 +03:00
Artal Druk
c9605cd66f Revert "Fix unrecognized selector crash on UNNotification cast"
This reverts commit 0c21b4bda1.
2019-05-02 15:28:08 +03:00
yogevbd
0c21b4bda1 Fix unrecognized selector crash on UNNotification cast 2019-04-18 15:11:24 +03:00
Artal Druk
20269137c8 expose missing supportedEvents 2019-04-18 10:46:57 +03:00
Artal Druk
022fda3928 add requiresMainQueueSetup 2019-04-18 10:46:26 +03:00
aboelbisher
498dd34b70 [WIP] iOS deprecated API replacement (#295)
* IOS deprecated API replacement
2019-03-18 11:24:55 +02:00
yogevbd
c093686804 Fixes isRegisteredForRemoteNotifications on iOS 2019-02-24 15:50:33 +02:00
Doron Pearl
aa7625ce39 fix background PN is received as foreground
for the first time. refs #268 
The `didReceiveRemoteNotification` checks for the current app state which will be active and hence wrongly emit the notification to JS as foreground. However at the exact time when the user opened the notification, the app was at the background hence this is a background notification by definition.

In other words, conceptually determining if the notification is background or foreground should NOT be based on the time it was consumed from the queue but on the time it was received. Practically, if it was queued, then the app must have been in the background ==> background notification.
2018-12-09 16:50:59 +02:00
Yedidya Kennard
3c170df7de Merge pull request #186 from vehikl/feature/get-badge-count
Added method for getting the current iOS badge count
2018-02-25 16:16:38 +02:00
Yedidya Kennard
ade806e527 Merge pull request #191 from wix/initial_notification_ios
getInitialNotification implemented on iOS
2018-02-25 16:16:28 +02:00
Yedidya Kennard
2643b66f5e Merge pull request #148 from KnackTech/open-local-fix
iOS opening Local Notification crash fix
2018-02-25 16:16:19 +02:00
Yedidya Kennard
3f13f6f99a Get local notification too 2018-02-25 16:10:15 +02:00
Yedidya Kennard
5c796bf70e getInitialNotification implemented on iOS 2018-02-25 15:51:20 +02:00
Lucas Gladding
2aaaad99c3 Added method for getting the current badge count. 2018-02-15 22:40:40 -05:00
Amit Davidi
28a2811766 Upgrade lib and demo projects to RN 0.51 2018-01-11 14:27:26 +02:00
David Stoker
816b09e970 Revert "Add iOS version checks to prevent crashes on iOS 8"
This reverts commit 9a47c853ce.
2017-11-15 22:12:20 -05:00
David Stoker
9a47c853ce Add iOS version checks to prevent crashes on iOS 8 2017-11-15 22:04:11 -05:00
David Stoker
d8a3d25ba0 Fix setting of the openedLocalNotification to use the userInfo from the UILocalNotification if it exists instead of the UILocalNotification itself 2017-10-26 22:39:45 -04:00
Ran Greenberg
c45934545f Merge pull request #62 from Benjamin-Dobell/fcm-ios
Accept string device tokens
2017-10-24 20:19:18 +03:00
Ryan Eberhardt
358c1ec56a Add silent option to iOS localNotification
Add an option to suppress notification sound. Allows for in-app
notification mute
2017-08-24 12:23:34 -07:00
Ryan Eberhardt
d945506c82 Use UserNotifications to create local notifications
a15e038a adds support for enumerating/dismissing delivered notifications
by ID, but UserNotifications notifications and UILocalNotification
notifications have a different set of IDs (a notification created using
UILocalNotification will have an ID that does not match the
notification's ID in the UserNotifications world and hence cannot be
used to dismiss that notification). This commit creates the
notifications using UserNotifications if the user is on iOS 10.
2017-08-15 17:09:59 -07:00
Ryan Eberhardt
6b7bb9c9f0 Merge branch 'feature/remove-delivered-notifications' into dismiss-notifications 2017-08-15 17:08:08 -07:00
Ryan Eberhardt
1ece028168 Add iOS checkPermissions
Add a checkPermissions function allowing the app to determine what
notification permissions the user has granted. The function returns a
promise resolving to an object with permission info.
2017-08-01 16:53:36 -07:00
Ran Greenberg
baac919188 add isRegisteredForRemoteNotifications to iOS native side 2017-07-12 15:57:50 +03:00
Omri Bruchim
a1911b324d Fix: Handling first push notification (when opening app with push) without remove it from bridgeQueue, cause triggering same action multiple times. 2017-06-01 16:56:05 +03:00
Benjamin Dobell
babfd9f1d0 Accept string device tokens 2017-05-07 05:24:53 +10:00
Omri Bruchim
9856f121ca Add setBadgesCount function (for iOS) 2017-04-24 15:34:22 +03:00
Gustavo Perdomo
a15e038a6f Initial support of UNUserNotification 2017-03-22 15:56:06 -03:00
Amit Davidi
c9e349f94a Fix rn-0.40 support PR's usage of __has_include 2017-03-22 11:54:30 +02:00
Gustavo Perdomo
fb2111c027 Add support to RN 0.40 2017-03-20 12:04:00 -03:00
Raymond Penners
4452be9048 Expose registration failure event 2017-01-17 20:20:52 +01:00
Lidan Hifi
91ceadbee5 upgrade example app to RN 0.34 and React 15.3 2016-09-25 11:54:48 +03:00
Lidan Hifi
6497ee023b added cancelLocalNotification and cancelAllLocalNotifications support 2016-09-25 01:50:25 +03:00
Lidan Hifi
25c9c40003 fix bug- trigger notification opened event on app launch 2016-05-09 17:04:03 +03:00
Lidan Hifi
6476026b86 added local notifications support 2016-04-23 17:30:25 +03:00
Lidan Hifi
46a443b8f8 fix background queue for notification actions and background notifications 2016-04-23 11:46:25 +03:00
Lidan Hifi
448cc12eeb added permissions handling, added PushKit support for reliable background notifications 2016-04-17 16:58:49 +03:00
Lidan Hifi
903834a40b fix interactive notification action coldstart 2016-04-15 02:52:42 +03:00
Lidan Hifi
4392135fd5 optimized action handling using single listener, added reset method that removes the action event listener to prevent memory leaks 2016-04-15 00:56:30 +03:00