1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00
Commit Graph

9 Commits

Author SHA1 Message Date
0aa38bed5a PM-10600: Unit Tests fix to NotificationHubPushRegistrationService after merge conflict 2024-11-20 11:09:59 +00:00
ccf685f29d Merge branch 'main' into km/pm-10600
# Conflicts:
#	src/Core/NotificationHub/NotificationHubPushRegistrationService.cs
2024-11-19 20:22:10 +00:00
dfbc400520 Remove FCMv1 feature flag (#5030)
* Remove FCMv1 feature flag

* Killed a using
2024-11-12 15:16:31 -05:00
d142af07bf PM-10600: Fix Mobile devices not registering to organization push notifications
We only register devices for organization push notifications when the organization is being created. This does not work, since we have a use case (Notification Center) of delivering notifications to all users of organization. This fixes it, by adding the organization id tag when device registers for push notifications.
2024-11-05 14:59:27 +00:00
cbc1e0ffe4 PM-10600: Fix FeatureService service discoverability error
The `IFeatureService` is scoped service, yet it is provided as non-scoped via service provider. This results in exception on runtime. No Android device can register for push notifications as a result.
2024-11-05 14:52:27 +00:00
8ff820de17 PM-10600: Startup fix 2024-10-23 14:29:09 +01:00
cf8b91ebcc PM-10600: Small refactor, UTs coverage 2024-10-22 23:52:58 +01:00
e9d1052545 Merge branch 'refs/heads/main' into km/pm-10600
# Conflicts:
#	src/Core/NotificationHub/NotificationHubPushNotificationService.cs
#	src/Core/NotificationHub/NotificationHubPushRegistrationService.cs
#	src/Core/Services/Implementations/MultiServicePushNotificationService.cs
2024-10-22 20:51:57 +01:00
f44a59f7a9 Shard notification hub (#4450)
* Allow for binning of comb IDs by date and value

* Introduce notification hub pool

* Replace device type sharding with comb + range sharding

* Fix proxy interface

* Use enumerable services for multiServiceNotificationHub

* Fix push interface usage

* Fix push notification service dependencies

* Fix push notification keys

* Fixup documentation

* Remove deprecated settings

* Fix tests

* PascalCase method names

* Remove unused request model properties

* Remove unused setting

* Improve DateFromComb precision

* Prefer readonly service enumerable

* Pascal case template holes

* Name TryParse methods TryParse

* Apply suggestions from code review

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* AllClients is a set of clients and must be deduplicated

* Fix registration start time

* Add logging to initialization of a notification hub

* more logging

* Add lower level logging for hub settings

* Log when connection is resolved

* Improve log message

* Log pushes to notification hub

* temporarily elevate log messages for visibility

* Log in multi-service when relaying to another push service

* Revert to more reasonable logging free of user information

* Fixup merge

Deleting user was extracted to a command in #4803, this updates that work to use just the device ids as I did elsewhere in abd67e8ec

* Do not use bouncy castle exception types

* Add required services for logging

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
2024-10-22 12:20:57 -04:00