HomePhabricator
Diffusion Comm e5460c5d31a0

[web] Allow users to enable push notifs

Description

[web] Allow users to enable push notifs

Summary: Depending on notification permission we either want to show a modal that asks for permission or (if we already have the permission) create a notification subscription immediately. We want to do this both for existing users and when someone new logs in.

Test Plan: Test if subscription is created/ the modal shows up when someone logs in or open the page when logged in

Reviewers: tomek, kamil, inka

Reviewed By: inka

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D6833

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Feb 21 2023, 8:21 AM
Reviewer
inka
Differential Revision
D6833: [web] Allow users to enable push notifs
Parents
rCOMMdfb3e013cfdd: [web] Handle notifications in service worker
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMe5460c5d31a0: [web] Allow users to enable push notifs (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Mar 1 2023, 12:50 AM