Skip to content

Commit 8059629

Browse files
authored
Merge pull request #95 from alberto-bottarini/patch-1
Update README.md
2 parents 973a787 + 9ccb3cf commit 8059629

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ class AccountApproved extends Notification
9292
->title('Approved!')
9393
->icon('/approved-icon.png')
9494
->body('Your account was approved!')
95-
->action('View account', 'view_account');
95+
->action('View account', 'view_account')
96+
->options(['TTL' => 1000]);
9697
// ->data(['id' => $notification->id])
9798
// ->badge()
9899
// ->dir()
@@ -106,6 +107,8 @@ class AccountApproved extends Notification
106107
}
107108
```
108109

110+
You can see available options here: https://github.com/web-push-libs/web-push-php/tree/v2.0.1#notifications-and-default-options
111+
109112
### Save/Update Subscriptions
110113

111114
To save or update a subscription use the `updatePushSubscription($endpoint, $key = null, $token = null, $contentEncoding = null)` method on your user:

0 commit comments

Comments
 (0)