From 3bae320e073158d039309df1893ac9fe05bf8030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 3 Jun 2024 17:58:55 +0200 Subject: [PATCH] Remove collapse_key from android fcm request --- flutter/TODO.md | 3 ++- scnserver/push/firebase.go | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter/TODO.md b/flutter/TODO.md index 0f7f2e4..e0903f8 100644 --- a/flutter/TODO.md +++ b/flutter/TODO.md @@ -36,4 +36,5 @@ - [ ] Disable compat | remove code - [x] compat message title - - [ ] ... \ No newline at end of file + - [ ] ... + - [ ] RWLock directly in go - prevent/reduce db-locked exception diff --git a/scnserver/push/firebase.go b/scnserver/push/firebase.go index 0c6cf68..90030ae 100644 --- a/scnserver/push/firebase.go +++ b/scnserver/push/firebase.go @@ -67,8 +67,7 @@ func (fb FirebaseConnector) SendNotification(ctx context.Context, user models.Us jsonBody["apns"] = gin.H{} } else if client.Type == models.ClientTypeAndroid { jsonBody["android"] = gin.H{ - "priority": "high", - "collapse_key": msg.ChannelID.String(), + "priority": "high", "notification": gin.H{ "event_time": msg.Timestamp().Format(time.RFC3339), "title": msg.FormatNotificationTitle(user, channel),