How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Open Nextcloud on Safari
- Click bell icon with red dot
- If asked, deny web push permissions
- Open Nextcloud in new tab
- Notice red dot on bell icon
- Click bell icon
- There are no notifications
Expected behaviour
If there are no notifications and web push permissions have been denied, a red dot should not be displayed
Actual behaviour
Red dot it displayed even tough web push permissions have been denied and there are no notifications
Server configuration
Web server: Nginx
Database: MySQL
PHP version: 8.5
Nextcloud version: 33.0.5
List of activated apps
not relevant
Nextcloud configuration
also not relevant
Browser
Browser name: Safari
Browser version: 26.5 (21624.2.5.11.4)
Operating system: macOS Tahoe 26.5
Browser log:
[Info] Notifications permissions not yet requested (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Has notify_push enabled, slowing polling to 15 minutes (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Polling interval updated to 900000 (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Started background fetcher as session_keepalive is enabled (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Got notification data, restoring default polling interval. (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
Additional Info:
I believe the dot is shown because of webNotificationsGranted === null, see
|
:showDot="notifications.length !== 0 || webNotificationsGranted === null" |
This is because none of the scenarios covered by the if-tree in checkWebNotificationPermission() match, so null is returned (which is also why Notifications permissions not yet requested)
|
checkWebNotificationPermissions() { |
|
if (!('Notification' in window)) { |
|
console.info('Browser does not support notifications') |
|
this.webNotificationsGranted = false |
|
return |
|
} |
|
|
|
if (window.Notification.permission === 'granted') { |
|
console.debug('Notifications permissions granted') |
|
this.webNotificationsGranted = true |
|
return |
|
} |
|
|
|
if (window.Notification.permission === 'denied') { |
|
console.debug('Notifications permissions denied') |
|
this.webNotificationsGranted = false |
|
return |
|
} |
|
|
|
if (!window.isSecureContext) { |
|
console.debug('Notifications require HTTPS') |
|
this.webNotificationsGranted = false |
|
return |
|
} |
|
|
|
console.info('Notifications permissions not yet requested') |
|
this.webNotificationsGranted = null |
|
}, |
Curiously, from the browser console, window.Notification.permission returns default, even though Nextcloud had previously already requested web push permissions and I had not granted them. This is also reflected in Safari's settings:

When removing the entry within Safari's settings and reloading the window, I get asked for notification permissions again. If I click deny and refresh again, everything is working fine and there is no red dot:
[Debug] Notifications permissions denied (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Has notify_push enabled, slowing polling to 15 minutes (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Polling interval updated to 900000 (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Started background fetcher as session_keepalive is enabled (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
[Debug] Got notification data, restoring default polling interval. (NotificationsApp-iD1fLC7v.chunk.mjs, line 86)
This time, window.Notification.permission correctly returns deny.
However, after opening Nextcloud in a new tab, the red dot appears again, the log again shows Notifications permissions not yet requested and window.Notification.permission returns default again.
It seems like window.Notification.permission is not reliable on Safari, leading to the red dot appearing when it shouldn't. A quick google search led me to a Reddit thread, where in the comments someone mentioned using pushManager instead, so maybe that is the solution? This is probably also what #2969 is about?
Thanks for looking into this!
How to use GitHub
Steps to reproduce
Expected behaviour
If there are no notifications and web push permissions have been denied, a red dot should not be displayed
Actual behaviour
Red dot it displayed even tough web push permissions have been denied and there are no notifications
Server configuration
Web server: Nginx
Database: MySQL
PHP version: 8.5
Nextcloud version: 33.0.5
List of activated apps
not relevant
Nextcloud configuration
also not relevant
Browser
Browser name: Safari
Browser version: 26.5 (21624.2.5.11.4)
Operating system: macOS Tahoe 26.5
Browser log:
Additional Info:
I believe the dot is shown because of
webNotificationsGranted === null, seenotifications/src/NotificationsApp.vue
Line 18 in 9ca979d
This is because none of the scenarios covered by the if-tree in
checkWebNotificationPermission()match, so null is returned (which is also whyNotifications permissions not yet requested)notifications/src/NotificationsApp.vue
Lines 539 to 566 in 9ca979d
Curiously, from the browser console,

window.Notification.permissionreturnsdefault, even though Nextcloud had previously already requested web push permissions and I had not granted them. This is also reflected in Safari's settings:When removing the entry within Safari's settings and reloading the window, I get asked for notification permissions again. If I click deny and refresh again, everything is working fine and there is no red dot:
This time,
window.Notification.permissioncorrectly returnsdeny.However, after opening Nextcloud in a new tab, the red dot appears again, the log again shows
Notifications permissions not yet requestedandwindow.Notification.permissionreturnsdefaultagain.It seems like
window.Notification.permissionis not reliable on Safari, leading to the red dot appearing when it shouldn't. A quick google search led me to a Reddit thread, where in the comments someone mentioned usingpushManagerinstead, so maybe that is the solution? This is probably also what #2969 is about?Thanks for looking into this!