From 4ffda6d6b4f32498df79786fdfe07e00edefaeef Mon Sep 17 00:00:00 2001 From: Maciej Zieniuk Date: Tue, 24 Dec 2024 23:04:34 +0000 Subject: [PATCH] push notification logging --- .../x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt index 85ad1603eb4..c0c7357da97 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt @@ -26,7 +26,9 @@ import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapNotNull import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.launch +import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json +import timber.log.Timber import java.time.Clock import java.time.ZoneOffset import java.time.ZonedDateTime @@ -107,6 +109,8 @@ class PushManagerImpl @Inject constructor( } override fun onMessageReceived(data: Map) { + Timber.tag("PushManager").i(json.encodeToString(data)) + val notificationType = data["type"] ?.let { json.decodeFromStringOrNull(string = it) } ?: return