Description
When HAPI is used both as a normal Microsoft Edge website and as an Edge-installed PWA on the same Windows 10 machine, a single session event can produce two identical Windows notifications.
The duplicate notifications appear under two separate Windows notification sources:
hapi.techotaku39.top (via Microsoft Edge)
HAPI (via Microsoft Edge)
Disabling either source stops one batch of the duplicate notifications.
Steps to Reproduce
- Open HAPI in a normal Microsoft Edge tab.
- Grant notification permission.
- Install the same HAPI origin as an Edge PWA.
- Open the installed PWA and grant notification permission.
- Leave both contexts in the background.
- Trigger a notification-producing event, such as
Ready for input.
- Open the Windows notification center.
Expected Behavior
One session event should produce one notification per logical device, while still allowing notifications to be delivered to separate physical devices.
Actual Behavior
The same event produces two identical notifications on the same Windows machine. The notifications are shown under separate Edge notification sources.
After disabling one of the sources, the duplicate notification batch no longer appears.
Environment
- OS: Windows 10
- Browser: Microsoft Edge
- Installation: HAPI used as both a normal website and an installed Edge PWA
- HAPI origin:
hapi.techotaku39.top
Additional Investigation
The current implementation appears to:
- Automatically register Web Push from both browser and PWA contexts.
- Store multiple subscriptions under the same namespace when their endpoints differ.
- Send each notification to every stored endpoint in that namespace.
This behavior is reasonable for supporting multiple physical devices, but the browser and installed PWA on the same machine are not identified as the same logical notification device. The notification tag also cannot deduplicate notifications across separate Edge application identities.
This suggests a Web Push subscription lifecycle or device-deduplication issue rather than an Edge rendering problem.
Requested Behavior
Please consider a subscription-management or device-identification strategy that:
- Preserves notifications on separate physical devices.
- Prevents duplicate notifications from the normal Edge website and the installed Edge PWA on the same device.
- Provides a way to inspect, disable, or remove individual Web Push subscriptions.
- Adds regression coverage for the browser-plus-PWA scenario.
Related Context
Description
When HAPI is used both as a normal Microsoft Edge website and as an Edge-installed PWA on the same Windows 10 machine, a single session event can produce two identical Windows notifications.
The duplicate notifications appear under two separate Windows notification sources:
hapi.techotaku39.top (via Microsoft Edge)HAPI (via Microsoft Edge)Disabling either source stops one batch of the duplicate notifications.
Steps to Reproduce
Ready for input.Expected Behavior
One session event should produce one notification per logical device, while still allowing notifications to be delivered to separate physical devices.
Actual Behavior
The same event produces two identical notifications on the same Windows machine. The notifications are shown under separate Edge notification sources.
After disabling one of the sources, the duplicate notification batch no longer appears.
Environment
hapi.techotaku39.topAdditional Investigation
The current implementation appears to:
This behavior is reasonable for supporting multiple physical devices, but the browser and installed PWA on the same machine are not identified as the same logical notification device. The notification
tagalso cannot deduplicate notifications across separate Edge application identities.This suggests a Web Push subscription lifecycle or device-deduplication issue rather than an Edge rendering problem.
Requested Behavior
Please consider a subscription-management or device-identification strategy that:
Related Context