Skip to content

Commit

Permalink
Add badge and sound to UNNotification and UNNotificationRequest forma…
Browse files Browse the repository at this point in the history
…tters (#237)
  • Loading branch information
nbolender authored Nov 22, 2020
1 parent d39b2dd commit 323b73f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RNCPushNotificationIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ @implementation RNCPushNotificationIOS
formattedNotification[@"title"] = RCTNullIfNil(content.title);
formattedNotification[@"subtitle"] = RCTNullIfNil(content.subtitle);
formattedNotification[@"body"] = RCTNullIfNil(content.body);
formattedNotification[@"badge"] = RCTNullIfNil(content.badge);
formattedNotification[@"sound"] = RCTNullIfNil(content.sound);
formattedNotification[@"category"] = RCTNullIfNil(content.categoryIdentifier);
formattedNotification[@"thread-id"] = RCTNullIfNil(content.threadIdentifier);
formattedNotification[@"userInfo"] = RCTNullIfNil(RCTJSONClean(content.userInfo));
Expand All @@ -250,6 +252,8 @@ @implementation RNCPushNotificationIOS
formattedRequest[@"title"] = RCTNullIfNil(content.title);
formattedRequest[@"subtitle"] = RCTNullIfNil(content.subtitle);
formattedRequest[@"body"] = RCTNullIfNil(content.body);
formattedRequest[@"badge"] = RCTNullIfNil(content.badge);
formattedRequest[@"sound"] = RCTNullIfNil(content.sound);
formattedRequest[@"category"] = RCTNullIfNil(content.categoryIdentifier);
formattedRequest[@"thread-id"] = RCTNullIfNil(content.threadIdentifier);
formattedRequest[@"userInfo"] = RCTNullIfNil(RCTJSONClean(content.userInfo));
Expand Down

0 comments on commit 323b73f

Please sign in to comment.