From 5dd1bb17ca6503b21ac93e439fe1dc1e362f0c42 Mon Sep 17 00:00:00 2001 From: bjoern Date: Wed, 8 May 2024 17:40:25 +0200 Subject: [PATCH] log if we receive onDeletedMessages() (#3034) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * log if we receive onDeletedMessages() * Update src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java Co-authored-by: Asiel Díaz Benítez --------- Co-authored-by: Asiel Díaz Benítez --- .../securesms/notifications/FcmReceiveService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java b/src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java index fe81f4a07..4c51d5a61 100644 --- a/src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java +++ b/src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java @@ -81,6 +81,12 @@ public class FcmReceiveService extends FirebaseMessagingService { // we just let the app run as long as possible. } + @Override + public void onDeletedMessages() { + Log.i(TAG, "FCM push notifications dropped"); + // nothing special to do as we're running now and notifications should be processed as usual. + } + @Override public void onNewToken(@NonNull String rawToken) { prefixedToken = addPrefix(rawToken);