Skip to content

Commit

Permalink
fix(messaging, ios): badge is in the message, not the notification (
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley authored Feb 21, 2023
1 parent 457ea3d commit cf28267
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,8 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {

// Apple only
// message.notification.apple.badge
if (apsAlertDict[@"badge"] != nil) {
notificationIOS[@"badge"] = apsAlertDict[@"badge"];
if (apsDict[@"badge"] != nil) {
notificationIOS[@"badge"] = [NSString stringWithFormat:@"%@", apsDict[@"badge"]];
}
}

Expand Down

0 comments on commit cf28267

Please sign in to comment.