1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

feat(notifications): [PM-19388] Enable push notifications on locked clients

* Add back notifications connection on locked accounts

* Updated tests.

* Make sure web push connection service is started synchronously

* Fixed merge conflicts.

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
This commit is contained in:
Todd Martin
2025-08-26 11:41:15 -04:00
committed by GitHub
parent fb4f87958d
commit ad2dfe1e99
5 changed files with 40 additions and 19 deletions

View File

@@ -1125,6 +1125,7 @@ export default class MainBackground {
new SignalRConnectionService(this.apiService, this.logService),
this.authService,
this.webPushConnectionService,
this.configService,
);
this.fido2UserInterfaceService = new BrowserFido2UserInterfaceService(this.authService);
@@ -1370,12 +1371,14 @@ export default class MainBackground {
this.accountService,
this.authService,
);
}
async bootstrap() {
// Synchronous startup
if (this.webPushConnectionService instanceof WorkerWebPushConnectionService) {
this.webPushConnectionService.start();
}
}
async bootstrap() {
this.containerService.attachToGlobal(self);
await this.sdkLoadService.loadAndInit();