HomePhabricator
Diffusion Comm 18ba2d595d52

[web] Add notification permission modal

Tags
None
Referenced Files
F400277: image.png
Mar 1 2023, 12:51 AM
File Not Attached
Subscribers
None

Description

[web] Add notification permission modal

Summary: Adds a simple modal that asks for permission to display notifications. If user hasn't blocked the notifs yet we will request permission from the browser. If we get it we will then create a new subscription. The modal will be used in the laters diffs.

Test Plan:
Check that the user is correctly asked for a permission and the subscription is correctly created.

image.png (454×984 px, 36 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

Subscribers: atul

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Feb 21 2023, 8:17 AM
Reviewer
ashoat
Differential Revision
D6820: [web] Add notification permission modal
Parents
rCOMMa8c642f13679: [web] Add hook for creating push subscription
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM18ba2d595d52: [web] Add notification permission modal (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Mar 1 2023, 12:50 AM