[PR #3304] [MERGED] feat: Implement Push Notifications sync #3263

Closed
opened 2026-03-03 09:42:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3304
Author: @GeekCornerGH
Created: 3/4/2023
Status: Merged
Merged: 6/12/2023
Merged by: @BlackDex

Base: mainHead: feature/push-notifications


📝 Commits (1)

📊 Changes

22 files changed (+526 additions, -70 deletions)

View changed files

📝 .env.template (+7 -0)
migrations/mysql/2023-02-18-125735_push_uuid_table/down.sql (+0 -0)
migrations/mysql/2023-02-18-125735_push_uuid_table/up.sql (+1 -0)
migrations/postgresql/2023-02-18-125735_push_uuid_table/down.sql (+0 -0)
migrations/postgresql/2023-02-18-125735_push_uuid_table/up.sql (+1 -0)
migrations/sqlite/2023-02-18-125735_push_uuid_table/down.sql (+0 -0)
migrations/sqlite/2023-02-18-125735_push_uuid_table/up.sql (+1 -0)
📝 src/api/admin.rs (+15 -7)
📝 src/api/core/accounts.rs (+72 -6)
📝 src/api/core/ciphers.rs (+21 -5)
📝 src/api/core/folders.rs (+3 -3)
📝 src/api/core/mod.rs (+0 -33)
📝 src/api/core/organizations.rs (+1 -1)
📝 src/api/core/sends.rs (+16 -8)
📝 src/api/mod.rs (+5 -0)
📝 src/api/notifications.rs (+37 -6)
src/api/push.rs (+280 -0)
📝 src/config.rs (+21 -0)
📝 src/db/models/device.rs (+42 -1)
📝 src/db/schemas/mysql/schema.rs (+1 -0)

...and 2 more files

📄 Description

Implements the Push Notification feature

Resolves #2469

Push-demo.webm

Special thanks to @samb-devel for your help

How to test:

Get your keys from the Bitwarden website
Set environment variables to the required values:

PUSH_ENABLED=true
PUSH_INSTALLATION_ID=CHANGEME
PUSH_INSTALLATION_KEY=CHANGEME

PUSH_RELAY_URI is already configured to use default Bitwarden server.
Start the server, then test.

This was my first shot at Rust.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3304 **Author:** [@GeekCornerGH](https://github.com/GeekCornerGH) **Created:** 3/4/2023 **Status:** ✅ Merged **Merged:** 6/12/2023 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `feature/push-notifications` --- ### 📝 Commits (1) - [`2d66292`](https://github.com/dani-garcia/vaultwarden/commit/2d66292350d352c3ea41db08d4c2de33898e9806) feat: Push Notifications ### 📊 Changes **22 files changed** (+526 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `.env.template` (+7 -0) ➕ `migrations/mysql/2023-02-18-125735_push_uuid_table/down.sql` (+0 -0) ➕ `migrations/mysql/2023-02-18-125735_push_uuid_table/up.sql` (+1 -0) ➕ `migrations/postgresql/2023-02-18-125735_push_uuid_table/down.sql` (+0 -0) ➕ `migrations/postgresql/2023-02-18-125735_push_uuid_table/up.sql` (+1 -0) ➕ `migrations/sqlite/2023-02-18-125735_push_uuid_table/down.sql` (+0 -0) ➕ `migrations/sqlite/2023-02-18-125735_push_uuid_table/up.sql` (+1 -0) 📝 `src/api/admin.rs` (+15 -7) 📝 `src/api/core/accounts.rs` (+72 -6) 📝 `src/api/core/ciphers.rs` (+21 -5) 📝 `src/api/core/folders.rs` (+3 -3) 📝 `src/api/core/mod.rs` (+0 -33) 📝 `src/api/core/organizations.rs` (+1 -1) 📝 `src/api/core/sends.rs` (+16 -8) 📝 `src/api/mod.rs` (+5 -0) 📝 `src/api/notifications.rs` (+37 -6) ➕ `src/api/push.rs` (+280 -0) 📝 `src/config.rs` (+21 -0) 📝 `src/db/models/device.rs` (+42 -1) 📝 `src/db/schemas/mysql/schema.rs` (+1 -0) _...and 2 more files_ </details> ### 📄 Description # Implements the Push Notification feature #### Resolves #2469 [Push-demo.webm](https://user-images.githubusercontent.com/45696571/222894552-109e3c34-e9b2-44a0-9474-304123f78b0a.webm) Special thanks to @samb-devel for your help ## How to test: Get your keys from [the Bitwarden website](https://bitwarden.com/host) Set environment variables to the required values: ```env PUSH_ENABLED=true PUSH_INSTALLATION_ID=CHANGEME PUSH_INSTALLATION_KEY=CHANGEME ``` PUSH_RELAY_URI is already configured to use default Bitwarden server. Start the server, then test. This was my first shot at Rust. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 09:42:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3263
No description provided.