From 0a9a9411587c40b79b442da7b894ee31d444e5bb Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Sun, 4 Dec 2016 20:38:42 -0500 Subject: [PATCH] Update RNFIRMesssaging.m clear badge for ios 9 when clearing all notifications --- ios/RNFIRMesssaging.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/RNFIRMesssaging.m b/ios/RNFIRMesssaging.m index e2c675f..6bc41a0 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]; } } -- 2.26.2