diff --git a/src/foss/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java b/src/foss/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
index 3aa3584cd..e21a1527e 100644
--- a/src/foss/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
+++ b/src/foss/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
@@ -10,6 +10,5 @@ import androidx.annotation.Nullable;
public class FcmReceiveService {
public static void register(Context context) {}
public static void waitForRegisterFinished() {}
- public static void deleteToken() {}
@Nullable public static String getToken() { return null; }
}
diff --git a/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java b/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
index b8e6bbbf0..c14416160 100644
--- a/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
+++ b/src/gplay/java/org/thoughtcrime/securesms/notifications/FcmReceiveService.java
@@ -92,23 +92,6 @@ public class FcmReceiveService extends FirebaseMessagingService {
return prefixedToken;
}
- public static void deleteToken() {
- if (prefixedToken == null) {
- Log.i(TAG, "FCM not registered yet, no token to delete");
- return;
- }
-
- Util.runOnAnyBackgroundThread(() -> {
- try {
- Tasks.await(FirebaseMessaging.getInstance().deleteToken());
- prefixedToken = null;
- Log.i(TAG, "FCM token deleted for " + BuildConfig.APPLICATION_ID);
- } catch (Exception e) {
- Log.e(TAG, "cannot delete FCM token for " + BuildConfig.APPLICATION_ID + ": " + e);
- }
- });
- }
-
@Override
public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
Log.i(TAG, "FCM push notification received");
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 5b2fdca3c..48ea14aa9 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -1150,7 +1150,7 @@
Reliable Push Notifications for Chatmail-Servers
Disable using Push Service?\n\nThis may result in delayed notifications.
Use Background Connection
- Requires ignored battery optimizations, use if Push Service is unavailable
+ Requires ignored battery optimizations, use if notifications don\'t arrive on time
Force Background Connection
Causes a permanent notification