Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No desktop notifications on macOS 14 (Sonoma) #249

Open
HealsCodes opened this issue Dec 4, 2023 · 2 comments
Open

No desktop notifications on macOS 14 (Sonoma) #249

HealsCodes opened this issue Dec 4, 2023 · 2 comments

Comments

@HealsCodes
Copy link

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

  • on the first received Message macOS should open the system banner asking if Cinny should be allowed to display notifications
  • for all following messages there should be desktop notifications
  • Cinny should appear in the list of applications with Notification permission in macOS System Settings

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
Copy link
Contributor

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

@camelCaseNick
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants