Allow PushNotification data to be any type of object

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2026-05-20 12:20:00 -04:00
1 parent 848c457bbe
commit 539a84d0d0
2 files changed
+2 -2

No files matched your search

@@ -91,7 +91,7 @@ public class FcmSender implements PushNotificationSender {
case RATE_LIMIT_CHALLENGE -> "rateLimitChallenge";
};
builder.putData(key, pushNotification.data() != null ? pushNotification.data() : "");
builder.putData(key, pushNotification.data() != null ? pushNotification.data().toString() : "");
final Timer.Sample sample = Timer.start();
@@ -12,7 +12,7 @@ import javax.annotation.Nullable;
public record PushNotification(String deviceToken,
TokenType tokenType,
NotificationType notificationType,
@Nullable String data,
@Nullable Object data,
@Nullable Account destination,
@Nullable Device destinationDevice,
boolean urgent) {