Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion desktop/src-tauri/src/macos_notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ fn request_notification_access_sync() -> Result<NotificationPermissionState, Str
});
UNUserNotificationCenter::currentNotificationCenter()
.requestAuthorizationWithOptions_completionHandler(
UNAuthorizationOptions::Alert | UNAuthorizationOptions::Sound,
// Badge must be requested here even though the dock badge is set via
// NSDockTile: once an app registers with UNUserNotificationCenter,
// macOS suppresses its dock badge (and hides the "Badge app icon"
// toggle in System Settings) unless Badge was part of the grant.
UNAuthorizationOptions::Alert
| UNAuthorizationOptions::Sound
| UNAuthorizationOptions::Badge,
&handler,
);

Expand Down