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.
Details
Details
- Reviewers
tomek inka kamil - Commits
- rCOMMc829096896c3: [desktop] Handle macos notifications
- 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
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
desktop/src/push-notifications.js | ||
---|---|---|
3 ↗ | (On Diff #23072) |
Comment Actions
Fix typo.
The types aren't readonly because either:
- they are class methods and can't be made readonly
- the NotificationEvents type isn't actually ever instantiated or exported, it's just a holder that maps event string name to the callback type