ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.69k stars 164 forks source link

Bug: Notification don't show #93

Open macuser79 opened 2 years ago

macuser79 commented 2 years ago

Avoid duplicates

Ferdium Version

6.0.0-nightly.25

What Operating System are you using?

macOS

Operating System Version

macOS Monterey Version 12.3.1

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Ferdium version

6.0.0-nightly.25

Expected Behavior

Push notifications for registered services

Actual Behavior

After installing the latest version, you do not receive push notifications for services, Whatsapp, Telegram, Facebook Messenger

Steps to reproduce

  1. Install last version
  2. Enable Whatsapp Service or Telegram Service
  3. Receive message from Whatsapp

Debug link

No response

Screenshots

No response

Additional information

No response

vraravam commented 2 years ago

@macuser79 - please update this card with your latest findings (which I think you put in the discord message room?) It would be helpful for future reference.

jjd0000 commented 2 years ago

6.0.0-nightly.27, macOS Monterey, Arch: x64 here.

My WhatsApp notifications and badges are unreliable as well. Sometimes they show up but usually not. Sometimes the notifications show up but not the badges (on the dock or in the app itself).

I don't have Telegram or FB Messenger installed.

This has been a problem for the past few weeks at least though (in Ferdi too).

codekoala commented 2 years ago

I am seeing the same behavior on 6.0.0-nightly.55 on both Arch Linux (x64, X11, i3wm) and Windows 11. I also see no badges at all for any services.

entozoon commented 2 years ago

Same on macOS Big Sur/Monterey with Ferdium 6.0.0-beta.1. Weird because inside the app, the services know they have notifications:

Screenshot

But not in the tray:

Screenshot
LCDraws commented 2 years ago

It's happening for me on windows 10, using nightly 69, if ferdium is focused i get the badge updates but no notifications, but if ferdium is not focused i get nothing at all, no badge update on the task bar, no notifications, no sounds. I don't have hybernation on, notifications are enables everywhere (ferdium and windows). Notifications worked the first day i installed the app, but after that, they are gone :(

vraravam commented 2 years ago

As per #429 , this is also present in Windows.

Donaldini commented 2 years ago

I have the same issue for Messenger. I'm not getting any notifications anymore, even though there are new messages when opening the service.

My system:

M0UL commented 2 years ago

i have the same issue with everything except whatsapp.

MadelineProtoFan commented 2 years ago

Sound notifications are not working in both K and Z version of telegram WEB

theretohere commented 1 year ago

I'm having this issue with Telegram not showing the badge and no audio notifications in Ferdium release 6.0.0 on Linux mint 20. It worked in the most recent Ferdi.

MadelineProtoFan commented 1 year ago

Please dear developer fix the problem. 1.5 month past. I do not get any sound notifications in both versions of telegram. Windows 10. I lost a lot of money. I can donate money to fix the problem It is very hard to work in silent mode without any sound notifications

Uraael commented 1 year ago

Hello. Installed Ferdium Nightly 6.1.17 on Windows 11 [Beta, Build 22622.598] and can confirm that Notifications are completely silent. 7 Services enabled: Facebook, Twitter, Discord, Mastodon, Element, LinkedIn & Messenger, and not one is showing notification update badges, no sounds are triggered, and nothing is happening in Windows Notifications either. These are busy accounts [Discord especially] and for all intents and purposes Ferdium is silent visually and aurally, although all the messages can be seen updating in their respective feeds.

Odd behaviour in Windows settings as well - In System > Notifications Ferdium is set to "Off" and actively resists clicking the toggle to "On" - it just clicks straight "Off" again. Going into the app settings and switching those on don't work either.

Hopefully someone is looking into this otherwise the app is not fit for purpose.

Uraael commented 1 year ago

Sorry, I should also say that I've tried toggling all the Notification/Audio switches inside Ferdium as well, editing individual Services and in global settings, with zero effect.

max1c commented 1 year ago

I'm also not getting Messenger notification icon on 6.2.0 release. The sound works, the notification icon never shows up.

lukecrawford1997 commented 1 year ago

Im also not getting messenger notifications. I get the sound but no icon notification and no taskbar notification. is their a fix to this??? Running the latest ver of the app too

eranelbaz commented 1 year ago

Not getting any whatsapp or telegram notifications, running v6.2.3 macos 13.0.1

rursache commented 1 year ago

Still happening. This was the reason why I stopped using Ferdi. Even now is broken 😓😒

nikolaykhodov commented 9 months ago

There may be an Electron's issue with ServiceWorkerRegistration used by apps to handle notifications via service workers. I came up with this theory when working on the fix for Telegram at https://github.com/ferdium/ferdium-recipes/pull/439

SpecialAro commented 9 months ago

There may be an Electron's issue with ServiceWorkerRegistration used by apps to handle notifications via service workers. I came up with this theory when working on the fix for Telegram at ferdium/ferdium-recipes#439

This is a really interesting finding! Do you think that it is possible to change the codebase of ferdium-app instead of making it service-specific? I make this question because several other webapps might be using the same method... and that is why we don't get notified sometimes.

nikolaykhodov commented 9 months ago

There may be an Electron's issue with ServiceWorkerRegistration used by apps to handle notifications via service workers. I came up with this theory when working on the fix for Telegram at ferdium/ferdium-recipes#439

This is a really interesting finding! Do you think that it is possible to change the codebase of ferdium-app instead of making it service-specific? I make this question because several other webapps might be using the same method... and that is why we don't get notified sometimes.

I feel like it may be fixed on Ferdium's side with more invested efforts to identify the low-level root cause. I was about to look into it, but decided to iterate with the telegram fix as a starting point.

nikolaykhodov commented 9 months ago

There may be an Electron's issue with ServiceWorkerRegistration used by apps to handle notifications via service workers. I came up with this theory when working on the fix for Telegram at ferdium/ferdium-recipes#439

This is a really interesting finding! Do you think that it is possible to change the codebase of ferdium-app instead of making it service-specific? I make this question because several other webapps might be using the same method... and that is why we don't get notified sometimes.

After having dug deeper, Electron doesn't seem to support popping notifications triggered from service workers (there is open issue https://github.com/electron/electron/issues/13041 from 2018 🥲). I don't find reasonable for myself to work on implementing so-called persistent notitfication for Electron. However, we may want to consider patching service workers on the fly to instrument self.registration with two patched methods:

I am no Electron expert so I've asked ChatGPT to reason how it could be approached. This procedure seems to be cumbersome (requiring really non-trivial efforts to implement) and high-risk (impacting ALL apps running on Ferdium). I would only consider hopping on implementing if the core developers were to agree on and then happy with the agreed procedure in advance.