win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
1.83k stars 60 forks source link

Push notifications aren't native on Windows 10 (Action Center) #675

Open belext opened 1 week ago

belext commented 1 week ago

Describe the bug When a push notification is sent, it doesn't appear in Windows 10 Action Center and doesn't use native design/formatting.

To Reproduce

  1. Go to https://pushalert.co/demo (for example)
  2. Click on Send Notification button
  3. Click Allow to confirm
  4. Observe the notification

Expected behavior A native notification should be displayed, just like in Chromium 126.0.6478.62

Screenshots

Supermium vs Chromium ![push-sup1](https://github.com/win32ss/supermium/assets/105567022/3f3646a6-1b24-43b5-9740-68c70b378ac0) ![push-chr1](https://github.com/win32ss/supermium/assets/105567022/e3948d2a-88b4-49a0-8a9b-eaad2da854ed) ![push-sup2](https://github.com/win32ss/supermium/assets/105567022/89b85508-06b7-4df7-b320-fb37931b851a) ![push-chr2](https://github.com/win32ss/supermium/assets/105567022/99a08cdb-e965-4c8f-aa0b-ecfaf05ba986)

Desktop:

Additional context This feature has been implemented since Chrome 68, it seems: one article, another article. Issues on the Chromium tracker: 40429540 (forum) and 40526176 (tracking).

crudebuster commented 1 week ago

May I add, in Windows 7 they aren't working at all since Supermium M122, that's the base for further Thorium versions also, I think.

Sorry if it's not the scope of this bug.

https://github.com/Alex313031/thorium-legacy/issues/50

win32ss commented 1 week ago

A separate class is used for the Windows 10 notifications, but it does not initialize in Supermium for a currently unknown reason, forcing a fallback to the "message center" notifications. The Windows 10 notifications are also not used before version 1803 because of high CPU usage associated with them until that release.

Windows 7 notifications do appear, but only after returning from sleep or after a very long period of time. This does not happen on 2000/XP/Vista or 8.x/10/11 where they appear instantaneously.

crudebuster commented 1 week ago

A separate class is used for the Windows 10 notifications, but it does not initialize in Supermium for a currently unknown reason, forcing a fallback to the "message center" notifications. The Windows 10 notifications are also not used before version 1803 because of high CPU usage associated with them until that release.

Windows 7 notifications do appear, but only after returning from sleep or after a very long period of time. This does not happen on 2000/XP/Vista or 8.x/10/11 where they appear instantaneously.

Windows 7 notifications ceased to appear from 109 to 122, got the same problem on Thorium, in 124 they work again thanks.