Steffen
Well-known member
- Affected version
- 2.1 RC1
According to the readme file as well as the code, the option is called
TTL
not ttl
.
Diff:
--- a/src/XF/Service/PushNotification.php
+++ b/src/XF/Service/PushNotification.php
@@ -127,7 +127,7 @@ class PushNotification extends AbstractService
$webPush = $this->getWebPushObject();
$webPush->setDefaultOptions([
- 'ttl' => 86400, // if undelivered after 1 day, expire the notification
+ 'TTL' => 86400, // if undelivered after 1 day, expire the notification
]);
$subscriptions = $this->getReceiverSubscriptions();