cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
415 stars 49 forks source link

No desktop notifications on macOS 14 (Sonoma) #249

Open HealsCodes opened 11 months ago

HealsCodes commented 11 months ago

Describe the bug

When clicking the "Request Permisson" button in the Notification settings seemingly nothing happens. Cinny also never tries to send any notifications on macOS 14.

Tested with the current x86_64 Release from GitHub Releases as well as an M1 Arm64 build created from source.

Reproduction

  1. Open Settings
  2. Click 'Notifications'
  3. Click 'Request Permission' next to the 'Desktop Notifications' row
  4. Switch to another app and have someone send you a message

Expected behavior

Platform and versions

1. OS: macOS Sonoma (14.1.2) on AppleSilicon
2. Cinny version(s): Version 3.2.1 (20231101.110101) x86_64 official / Version 3.2.1 (20231204.095938) arm64
3. matrix.org
4. GitHub Releases (x86_64) as well as Git main branch (arm64 built from source)

Additional context

No response

aceArt-GmbH commented 10 months ago

I think tauri requires notifications to be send differently. https://tauri.app/v1/api/js/notification/#sendnotification cc https://github.com/cinnyapp/cinny/issues/1570

camelCaseNick commented 2 months ago

That API is enabled, as Cinny desktop enables every tauri API by default. (Not sure why that is, even though it is not recommended.) And it says:

Can also be used with the Notification Web API.

For me, window.Notification?.permission === 'granted' is true, and the window.Notification.requestPermission() promise resolve correctly. Calling window.Notification('test') creates a notification, as well.

maste9 commented 1 month ago

With Sequoia 15.0.1 still the same: Pressing the Button doesn't trigger anything visible. After that still no notifications at all. Any Workaround?