HomePhabricator
Diffusion Comm c829096896c3

[desktop] Handle macos notifications

Description

[desktop] Handle macos notifications

Summary: Register for push notifications and handle them by displaying a native notification. When a user clicks the notification we either navigate to the corresponding chat or if there is no main windows open a new one with a correct url.

Test Plan:

  • Check if the notifications display and navigate to a chat when clicked
  • Check if the app is closed notifications show up and open up a new window when clicked
  • Check if we get the notification but then close the app and the other way around, the click action still works correctly

Reviewers: tomek, inka, kamil

Reviewed By: tomek

Subscribers: ashoat, atul

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Feb 24 2023, 8:04 AM
Reviewer
tomek
Differential Revision
D6894: [desktop] Handle macos notifications
Parents
rCOMM8a4bdc4cabdc: [keyserver] Send macos notifications
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMc829096896c3: [desktop] Handle macos notifications (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Mar 1 2023, 12:55 AM