WebPushElixir (web_push_elixir v0.2.0)
Module to send web push notifications with an encrypted payload.
Summary
Functions
Sends a web push notification with an encrypted payload.
Functions
Link to this function
send_notification(subscription, message)
Sends a web push notification with an encrypted payload.
Arguments
subscription
is the subscription information received from the client. Accepted example:'{"endpoint":"https://some-push-service","keys":{"p256dh":"BNcRdreALRFXTkOOUHK1EtK2wtaz5Ry4YfYCA_0QTpQtUbVlUls0VJXg7A8u-Ts1XbjhazAkj7I99e8QcYP7DkM=","auth":"tBHItJI5svbpez7KI4CCXg=="}}'
message
is a message string.
Return value
Returns the result of HTTPoison.post