Skip to content

Commit c72e5bf

Browse files
committed
Added blurb about automatic permission seeking
1 parent e59ddbe commit c72e5bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ define(['pushjs'], function (Push) {
2323
});
2424
```
2525

26+
If the browser does not have permission to send push notifications, Push will automatically request permission as soon as create() is called. Simple as that.
27+
2628
#### Closing Notifications ####
2729
When it comes to closing notifications, you have a few options. You can either set a timeout (see "Options"), call Push's close() method, or pass around the notification object and call close() directly. Push's close() method will only work with newer browsers, taking in a notification's unique tag name and closing the first notification it finds with that tag:
2830

0 commit comments

Comments
 (0)