pwa: set TTL of push notification to 30 days (#70988) #210
|
@ -64,6 +64,7 @@ def notification(sender, instance=None, created=False, **kwargs):
|
|||
data=message,
|
||||
vapid_private_key=pwa_vapid_private_key,
|
||||
vapid_claims=claims,
|
||||
ttl=86400 * 30,
|
||||
)
|
||||
except pywebpush.WebPushException as e:
|
||||
if 'Push failed: 410 Gone' in str(e):
|
||||
|
|
Loading…
Reference in New Issue