PWA setup along with routes for storing subscriptions and sending push notifications#53
PWA setup along with routes for storing subscriptions and sending push notifications#53DhananjayPurohit wants to merge 2 commits intoorcasound:mainfrom
Conversation
|
@DhananjayPurohit I converted this PR into a draft because the v3 redesign is still underway. I don't think we'll be merging this PR in until that's completed, and you'll probably have to fix some conflicts at that point anyway. |
I would love to make changes in this PR after progress on v3. |
|
@DhananjayPurohit v3 was released a few months ago! We now have email notifications but no web push notifications. Still interested in revisiting this PR? Otherwise I would close it as it probably needs almost a complete rewrite |
|
Cool. I will create a new PR after rewriting the logic for web push notifications on the latest version (v3). Thanks. |
This PR supports PWA setup along with routes for storing subscriptions and sending push notifications.
How it works:-
http://localhost:4000would ask permission to show notifications./webpush/notifications/subscribethrough a POST request that would be stored in PostgreSQL database insidesubscriptionstable.http://localhost:4000/webpush/notifications/payload?title=Orcasound&body=Test%20push%20notificationwould send a GET request with a payload that would send push notifications to all the stored subscription objects.