fix(push): keep read-state clears alive as long as the alert (#2919)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-24 01:26:18 +02:00
1 parent bd6ca7290e
commit ea9f83a443
6 files changed
+91 -6

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ const FALLBACK_TITLE: &str = "Fluxer";
const APNS_CATEGORY: &str = "FLUXER_MESSAGE";
const APNS_SOUND: &str = "default";
const APNS_ALERT_EXPIRATION_SECONDS: i64 = 86_400;
const APNS_BACKGROUND_EXPIRATION_SECONDS: i64 = 3_600;
const APNS_BACKGROUND_EXPIRATION_SECONDS: i64 = 86_400;
const APNS_COLLAPSE_ID_MAX_BYTES: usize = 64;
const SHRUNK_BODY_MAX_BYTES: usize = 40;
const MINIMAL_TITLE_MAX_BYTES: usize = 120;
@@ -168,7 +168,7 @@ fn fcm_clear_message(device_token: &str, envelope: &Value) -> Value {
"data": data,
"android": {
"priority": "NORMAL",
"ttl": "3600s",
"ttl": "86400s",
"collapse_key": format!("clear:{tag}"),
},
"fcm_options": {"analytics_label": CLEAR_TYPE},