patch expo-notifications to clear badge (#4475)

This commit is contained in:
Hailey
2024-06-10 20:19:19 -07:00
committed by GitHub
parent d85c8a0976
commit 808dd3569d
2 changed files with 51 additions and 21 deletions
@@ -7,3 +7,8 @@ in `onMessageReceived` are sent to the module for handling.
It also allows us to set the Android notification channel ID from the notification `data`, rather
than the `notification` object in the payload.
### `setBadgeCountAsync` fix on Android
`ShortcutBadger`'s `setCount` doesn't work for clearing the badge on Android for some reason. Instead, let's use the
Android API for clearing the badge.