From 53ba717b70cb340933312538eb9b25bc7b62f3a9 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Thu, 7 May 2020 11:40:20 +0900 Subject: [PATCH 1/4] Update README.md (#114) --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 61e9801ab..a8099efd8 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ Then, add the 'UNUserNotificationCenterDelegate' to protocols: At the top of the file: ```objective-c +#import #import ``` @@ -118,12 +119,6 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response ``` -Also, if not already present, at the top of the file: - -```objective-c -#import -``` - And then in your AppDelegate implementation, add the following: ```objective-c From 874b1db579a289c1d85d971a675543f5b5ded041 Mon Sep 17 00:00:00 2001 From: Mateus Andrade Date: Wed, 27 May 2020 01:51:38 -0300 Subject: [PATCH 2/4] docs: adding npx pod-install instruction (#125) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8099efd8..bd318be61 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ There are a couple of cases for linking. Choose the appropriate one. The package is [automatically linked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) when building the app. All you need to do is: ```bash -cd ios && pod install +npx pod-install ``` - `react-native <= 0.59` From 45ee0304567e6fafadb0ab44d5b7bba4b29878d6 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Wed, 27 May 2020 14:13:12 +0900 Subject: [PATCH 3/4] chore: fix example (#127) --- example/App.js | 1 - 1 file changed, 1 deletion(-) diff --git a/example/App.js b/example/App.js index 1f9e05d56..5f342a078 100644 --- a/example/App.js +++ b/example/App.js @@ -86,7 +86,6 @@ export const App = () => { const sendLocalNotification = () => { PushNotificationIOS.presentLocalNotification({ alertBody: 'Sample local notification', - fireDate: new Date().toISOString(), applicationIconBadgeNumber: 1, }); }; From 57f93cfe33a514c4ad70bf59e97509e1b89ed8c9 Mon Sep 17 00:00:00 2001 From: Lukas Baranauskas <46403446+lukebars@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:52:34 +0300 Subject: [PATCH 4/4] feat: Add alertTitle, repeatInterval to formatted notification (#131) This will be really helpful when managing notifications, e.g. seeing the list for scheduled notifications --- ios/RNCPushNotificationIOS.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/RNCPushNotificationIOS.m b/ios/RNCPushNotificationIOS.m index 77f1b004d..97e28b6e3 100644 --- a/ios/RNCPushNotificationIOS.m +++ b/ios/RNCPushNotificationIOS.m @@ -92,9 +92,11 @@ @implementation RNCPushNotificationIOS formattedLocalNotification[@"fireDate"] = fireDateString; } formattedLocalNotification[@"alertAction"] = RCTNullIfNil(notification.alertAction); + formattedLocalNotification[@"alertTitle"] = RCTNullIfNil(notification.alertTitle); formattedLocalNotification[@"alertBody"] = RCTNullIfNil(notification.alertBody); formattedLocalNotification[@"applicationIconBadgeNumber"] = @(notification.applicationIconBadgeNumber); formattedLocalNotification[@"category"] = RCTNullIfNil(notification.category); + formattedLocalNotification[@"repeatInterval"] = RCTNullIfNil(notification.repeatInterval); formattedLocalNotification[@"soundName"] = RCTNullIfNil(notification.soundName); formattedLocalNotification[@"userInfo"] = RCTNullIfNil(RCTJSONClean(notification.userInfo)); formattedLocalNotification[@"remote"] = @NO;