From f5257e0da276949d43eaa36b9284fc4d59845637 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 25 Feb 2024 06:40:48 -0800 Subject: Replace deprecated method --- src/main/java/org/traccar/notificators/NotificatorFirebase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/notificators/NotificatorFirebase.java b/src/main/java/org/traccar/notificators/NotificatorFirebase.java index a4171a1d4..7440068f8 100644 --- a/src/main/java/org/traccar/notificators/NotificatorFirebase.java +++ b/src/main/java/org/traccar/notificators/NotificatorFirebase.java @@ -108,7 +108,7 @@ public class NotificatorFirebase extends Notificator { } try { - var result = FirebaseMessaging.getInstance().sendMulticast(messageBuilder.build()); + var result = FirebaseMessaging.getInstance().sendEachForMulticast(messageBuilder.build()); List failedTokens = new LinkedList<>(); var iterator = result.getResponses().listIterator(); while (iterator.hasNext()) { -- cgit v1.2.3