diff --git a/ios/RNFIRMesssaging.m b/ios/RNFIRMesssaging.m index e2c675fb31af417bbf93fddcf401b8ba320f7fd4..6bc41a0477004d617f2f6dd9ee21179f66d96ab0 100644 --- a/ios/RNFIRMesssaging.m +++ b/ios/RNFIRMesssaging.m @@ -282,6 +282,7 @@ RCT_EXPORT_METHOD(cancelAllLocalNotifications) [[UNUserNotificationCenter currentNotificationCenter] removeAllPendingNotificationRequests]; [[UNUserNotificationCenter currentNotificationCenter] removeAllDeliveredNotifications]; } else { + [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0]; [RCTSharedApplication() cancelAllLocalNotifications]; } }