From 07de6a8d6ad450bcfccf171c3134d27da4b8d855 Mon Sep 17 00:00:00 2001 From: Lukas Baranauskas <46403446+lukebars@users.noreply.github.com> Date: Mon, 8 Jun 2020 11:25:50 +0300 Subject: [PATCH] Add alertTitle, repeatInterval to formatted notif 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;