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 4040mix generate.vapid.keys
4141```
4242
43- 3 . Set environment variables for your generated keys:
43+ 3 . Set config for your generated keys:
4444
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] " 5050```
5151
5252## Usage
5353
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:
5555
5656* ` subscription ` : the subscription information received from the client - [ example demo] ( https://midarrlabs.github.io/web-push-elixir/ )
5757* ` message ` : the message string.
You can’t perform that action at this time.
0 commit comments