You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notification Tauri API, which just uses notify-rust crate under the hood:
Only supports file:/// URIs for icons, as stated by the notify-rust crate documentation.
1. OS: Arch Linux
2. Cinny version: 4.1.0
3. Matrix homeserver: matrix.org
4. Downloaded from: local build
Additional context
Also, I believe you should try to pass icon as image-path or image-data and not app_icon, and the app_icon should probably be "cinny" or something.
Doing that allows the server to either display the image (if there is one), the icon (if there is no image, as a fallback) or both (for rare servers that support it).
The text was updated successfully, but these errors were encountered:
jsonmaf1a
changed the title
Unsupported URI in app_icon for desktop notifications
Unsupported URI schema in app_icon for desktop notifications
Aug 30, 2024
Describe the bug
There are at least two ways to send desktop notifications in Tauri apps:
Notification Web API:
According to the Notifications API Standard, it should support URLs for icons. But this does not seem to work in Tauri, idk why.
Notification Tauri API, which just uses
notify-rust
crate under the hood:Only supports
file:///
URIs for icons, as stated by thenotify-rust
crate documentation.In Cinny, notifications use a URL for the
icon
, which is received asapp_icon
by the desktop notification server. However, this is unsupported according to the Freedesktop.org notifications specification. As a result, notifications on Linux are rendered without an icon.Reproduction
Expected behavior
Notifications should display an icon.
Platform and versions
1. OS: Arch Linux 2. Cinny version: 4.1.0 3. Matrix homeserver: matrix.org 4. Downloaded from: local build
Additional context
Also, I believe you should try to pass icon as
image-path
orimage-data
and notapp_icon
, and theapp_icon
should probably be "cinny" or something.Doing that allows the server to either display the image (if there is one), the icon (if there is no image, as a fallback) or both (for rare servers that support it).
The text was updated successfully, but these errors were encountered: