Skip to content

Commit 7ac8365

Browse files
authored
Add information about Safari 16 support
1 parent ec034f1 commit 7ac8365

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ $webPush->setReuseVAPIDHeaders(true);
165165

166166
### Notifications and default options
167167
Each notification can have a specific Time To Live, urgency, and topic.
168+
The WebPush standard states that `urgency` is optional but some users reports that Safari throws errors when they are not specified. This might be fixed in the future.
168169
You can change the default options with `setDefaultOptions()` or in the constructor:
169170

170171
```php
@@ -174,8 +175,8 @@ use Minishlink\WebPush\WebPush;
174175

175176
$defaultOptions = [
176177
'TTL' => 300, // defaults to 4 weeks
177-
'urgency' => 'normal', // protocol defaults to "normal"
178-
'topic' => 'new_event', // not defined by default,
178+
'urgency' => 'normal', // protocol defaults to "normal". (very-low, low, normal, or high)
179+
'topic' => 'newEvent', // not defined by default. Max. 32 characters from the URL or filename-safe Base64 characters sets
179180
'batchSize' => 200, // defaults to 1000
180181
];
181182

0 commit comments

Comments
 (0)