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
@@ -9,7 +9,6 @@ Currently, it Supports Sending Push Notification to **Firefox 46+, Chrome 52+ an
9
9
10
10
----------
11
11
12
-
13
12
Installation and Setup
14
13
----------------------
15
14
@@ -27,13 +26,15 @@ INSTALLED_APPS = (
27
26
```
28
27
29
28
If you would like to send notification to Google Chrome Users, you need to add a ``WEBPUSH_SETTINGS`` entry with the **Vapid Credentials** Like following:
29
+
30
30
```python
31
31
WEBPUSH_SETTINGS= {
32
32
"VAPID_PUBLIC_KEY": "Vapid Public Key",
33
-
"VAPID_PRIVATE_KEY":"Vapid Private Key",
33
+
"VAPID_PRIVATE_KEY":"Vapid Private Key",
34
34
"VAPID_ADMIN_EMAIL": "admin@example.com"
35
35
}
36
36
```
37
+
37
38
**Replace ``"Vapid Public Key"`` and ``"Vapid Private Key"`` with your Vapid Keys. Also replace ``admin@example.com`` with your email so that the push server of browser can reach to you if anything goes wrong.**
> **Note:** If you dont pass `group` through the `webpush` context, only logged in users can see the button for subscription and able to get notification.
130
145
131
146
----------
@@ -138,7 +153,6 @@ So in order to send notification, see below.
138
153
139
154
- If you would like to send notification to a specific group, do like following:
140
155
141
-
142
156
```python
143
157
from webpush import send_group_notification
144
158
@@ -152,6 +166,7 @@ So in order to send notification, see below.
152
166
```
153
167
154
168
- If you would like to send Notification to a specific user, do like following
169
+
155
170
```python
156
171
from webpush import send_user_notification
157
172
@@ -178,14 +193,14 @@ So in order to send notification, see below.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
0 commit comments