fix: push notification

This commit is contained in:
Krispire Admin
2026-06-08 17:18:02 +05:30
parent 3902033508
commit 0c8b2a54b3
+3 -1
View File
@@ -77,7 +77,9 @@ func (p *PushSender) SendToUser(ctx context.Context, userID string, payload Push
Subscriber: p.subject,
VAPIDPublicKey: p.pub,
VAPIDPrivateKey: p.priv,
TTL: 60,
// Hold the message for up to 6h so a sleeping/offline device
// still gets it on wake (60s would silently expire meanwhile).
TTL: 6 * 60 * 60,
Urgency: webpush.UrgencyNormal,
})
if err != nil {