Use the proper logic on iOS to increment the badge (#4233)

This commit is contained in:
Hailey 2024-06-07 15:15:33 -07:00 committed by GitHub
parent c58aedf050
commit 480a40862f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 15 deletions

View file

@ -31,6 +31,7 @@ export type ExpoBackgroundNotificationHandlerModule = {
forKey: keyof BackgroundNotificationHandlerPreferences,
value: string[],
) => Promise<void>
setBadgeCountAsync: (count: number) => Promise<void>
}
// TODO there are more preferences in the native code, however they have not been added here yet.

View file

@ -24,4 +24,5 @@ export const BackgroundNotificationHandler = {
removeFromStringArrayAsync: async (_: string, __: string) => {},
addManyToStringArrayAsync: async (_: string, __: string[]) => {},
removeManyFromStringArrayAsync: async (_: string, __: string[]) => {},
setBadgeCountAsync: async (_: number) => {},
} as ExpoBackgroundNotificationHandlerModule