Commit 0a9a9411 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update RNFIRMesssaging.m

clear badge for ios 9 when clearing all notifications
parent 8888cfbc
......@@ -282,6 +282,7 @@ RCT_EXPORT_METHOD(cancelAllLocalNotifications)
[[UNUserNotificationCenter currentNotificationCenter] removeAllPendingNotificationRequests];
[[UNUserNotificationCenter currentNotificationCenter] removeAllDeliveredNotifications];
} else {
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
[RCTSharedApplication() cancelAllLocalNotifications];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment