Skip to main content

Posts

Showing posts with the label PWA

Fixing PWA Notification Badges Not Updating in Microsoft Edge on Windows 11

  You have built a Progressive Web App, implemented the necessary background syncing, and deployed your notification logic. On macOS with Chrome, the dock icon updates perfectly. However, when users install your application via Microsoft Edge, the badge counter refuses to appear on the Windows 11 taskbar. Calling  navigator.setAppBadge()  seems to fail silently. There are no console errors, the Service Worker is active, and push messages arrive on time. This is a known architectural quirk regarding how Microsoft Edge handles Progressive Web App desktop integration with the Windows OS shell. Resolving this requires modifying how your Service Worker handles background execution lifecycles and strictly managing API promises. The Root Cause: The Edge and Windows Shell Bridge When a user installs a PWA via Microsoft Edge on Windows 11, the browser does not merely create a shortcut. It generates a lightweight Appx package under the hood. This package binds the web application d...