My web service for storing Web Push subscriptions and sending notifications.
No public UI available, api is served from https://ant478-push-notifications-dd605c846b24.herokuapp.com/api.
Checks if passed endpoint present in subscriptions list.
{
endpoint: string,
}
Saves given subscription for later notifications sending
{
endpoint: string,
receiver: string, // used to filter subscriptions on notification sending
p256dh?: string, // to be passed when payload is required in notification
auth?: string, // to be passed when payload is required in notification
}
Removes given endpoint from subscriptions list
{
endpoint: string,
}
Sends Web Push notification to all endpoints with passed receiver, deletes stale notifications from list.
{
x-api-key: string, // authorization key
}
{
receiver: string,
}