File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 40
40
mix generate.vapid.keys
41
41
```
42
42
43
- 3 . Set environment variables for your generated keys:
43
+ 3 . Set config for your generated keys:
44
44
45
- ``` yaml
46
- environment :
47
- - VAPID_PUBLIC_KEY= someVapidPublicKey
48
- - VAPID_PRIVATE_KEY= someVapidPrivateKey
49
- - VAPID_SUBJECT= mailto:[email protected]
45
+ ``` elixir
46
+ config :web_push_elixir ,
47
+ vapid_public_key: " someVapidPublicKey" ,
48
+ vapid_private_key: " someVapidPrivateKey" ,
49
+ vapid_subject: " mailto:[email protected] "
50
50
```
51
51
52
52
## Usage
53
53
54
- ` WebPushElixir` provides a simple `send_notification/2` function that accepts 2 arguments:
54
+ ` WebPushElixir ` provides a simple ` send_notification/2 ` that takes 2 arguments:
55
55
56
56
* ` subscription ` : the subscription information received from the client - [ example demo] ( https://midarrlabs.github.io/web-push-elixir/ )
57
57
* ` message ` : the message string.
You can’t perform that action at this time.
0 commit comments