Skip to content

Commit 57f93cf

Browse files
authored
feat: Add alertTitle, repeatInterval to formatted notification (#131)
This will be really helpful when managing notifications, e.g. seeing the list for scheduled notifications
1 parent 45ee030 commit 57f93cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/RNCPushNotificationIOS.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ @implementation RNCPushNotificationIOS
9292
formattedLocalNotification[@"fireDate"] = fireDateString;
9393
}
9494
formattedLocalNotification[@"alertAction"] = RCTNullIfNil(notification.alertAction);
95+
formattedLocalNotification[@"alertTitle"] = RCTNullIfNil(notification.alertTitle);
9596
formattedLocalNotification[@"alertBody"] = RCTNullIfNil(notification.alertBody);
9697
formattedLocalNotification[@"applicationIconBadgeNumber"] = @(notification.applicationIconBadgeNumber);
9798
formattedLocalNotification[@"category"] = RCTNullIfNil(notification.category);
99+
formattedLocalNotification[@"repeatInterval"] = RCTNullIfNil(notification.repeatInterval);
98100
formattedLocalNotification[@"soundName"] = RCTNullIfNil(notification.soundName);
99101
formattedLocalNotification[@"userInfo"] = RCTNullIfNil(RCTJSONClean(notification.userInfo));
100102
formattedLocalNotification[@"remote"] = @NO;

0 commit comments

Comments
 (0)