tauri-apps / tauri-apps/plugins-workspace

[feat] Scheduled notification

Open
#2,141 2 comments 4 reactions 0 assignees View on GitHub
plugin: notification status: upstream type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the problem

A api to schedule(and cancel) a notification for remind user when app is not open without setup a background process.

### Describe the solution you'd like

create
```rust
use tauri::api::notification::Notification;

Notification::new("ident")
.title("Tauri")
.show_after(Duration::from_millis(1))

// and

Notification::new("ident")
.title("Tauri")
.show_at(chrono::Utc.ymd(2022, 9, 18).and_hms(0,0,0))
```

cancel
```rust
use tauri::api::notification::Notification;

Notification::cancel_scheduled("ident")
```

### Alternatives considered

_No response_

### Additional context

https://developer.apple.com/documentation/usernotifications/scheduling_a_notification_locally_from_your_app
https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/scheduled-toast

Contributor guide

Open the contributing guide

Research direction

Start with the requested Rust Notification API and compare the Apple and Microsoft scheduled-notification documentation linked in the issue. Work out how delayed scheduling, absolute-time scheduling, and cancellation by identifier should behave without a background process; done means those operations are available through the proposed API.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, tauri
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.