You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VAPID headers make use of a JSON Web Token (JWT) to verify your identity. That token payload includes the protocol and hostname of the endpoint included in the subscription and an expiration timestamp (usually between 12-24h), and it's signed using your public and private key. Given that, two notifications sent to the same push service will use the same token, so you can reuse them for the same flush session to boost performance using:
162
+
163
+
```php
164
+
$webPush->setReuseVAPIDHeaders(true);
165
+
```
166
+
159
167
### Notifications and default options
160
168
Each notification can have a specific Time To Live, urgency, and topic.
161
169
You can change the default options with `setDefaultOptions()` or in the constructor:
0 commit comments