You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(badges): Use hasBadge flag to indicate badge count is set
* This fixes a bug when a notification had "SetTo" = 0; our check for the existence of notification.badge could not differentiate null vs 0, and we detected 0 as lack of existence.
* Using a flag let's us differentiate between null vs 0 badge count. The payload from APNS will be already be an NSNumber: https://developer.apple.com/documentation/usernotifications/unnotificationcontent/badge?language=objc and we will set the flag if there is a badge
0 commit comments