From d2c81c9d3d6aebae9c73a7567875e0165cfb1f08 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 17 May 2024 16:05:32 -0700 Subject: Disable badge incrementing for DMs (#4088) * disable badge increments for dms * revert decrementing in js for dms * reset badge on read notifications * remove some other code * prevent duplicate notification events --- .../backgroundnotificationhandler/BackgroundNotificationHandler.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/expo-background-notification-handler/android') diff --git a/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/BackgroundNotificationHandler.kt b/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/BackgroundNotificationHandler.kt index 344508523..0a8737b88 100644 --- a/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/BackgroundNotificationHandler.kt +++ b/modules/expo-background-notification-handler/android/src/main/java/expo/modules/backgroundnotificationhandler/BackgroundNotificationHandler.kt @@ -35,5 +35,8 @@ class BackgroundNotificationHandler( remoteMessage.data["sound"] = null } } + + // TODO - Remove this once we have more backend capability + remoteMessage.data["badge"] = null } } -- cgit 1.4.1