From 480a40862f329f98a37772f01fd774d0e6d89a9e Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 7 Jun 2024 15:15:33 -0700 Subject: Use the proper logic on iOS to increment the badge (#4233) --- .../ExpoBackgroundNotificationHandlerModule.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/expo-background-notification-handler/android/src') diff --git a/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/ExpoBackgroundNotificationHandlerModule.kt b/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/ExpoBackgroundNotificationHandlerModule.kt index 083ff1223..c876f899a 100644 --- a/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/ExpoBackgroundNotificationHandlerModule.kt +++ b/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/ExpoBackgroundNotificationHandlerModule.kt @@ -66,5 +66,9 @@ class ExpoBackgroundNotificationHandlerModule : Module() { AsyncFunction("removeManyFromStringArrayAsync") { forKey: String, strings: Array -> NotificationPrefs(appContext.reactContext).removeManyFromStringArray(forKey, strings) } + + AsyncFunction("setBadgeCountAsync") { _: Int -> + // This does nothing on Android + } } } -- cgit 1.4.1