Forum Discussion
Web Notifications API from Personal Tab app doesn't work
Hello SGymerATComitFS,
Web Notifications created using the standard browser Notifications API (new Notification(...)) do not reliably surface as native desktop toasts when your web app is running inside a Microsoft Teams personal tab—even if the tab is popped out into a new window and permissions are granted. This is because Teams hosts tab content within its own controlled runtime environment rather than a full standalone browser, and that host does not consistently forward web-based notification requests to the operating system’s notification center. As a result, the API may appear supported and run without errors, but no system-level notifications are displayed. The Notifications API is designed to allow browsers to show system notifications outside the web page viewport, but actual delivery depends on the host environment, and embedded shells like Teams may restrict or ignore them for security or platform consistency reasons.
Couple clarification questions:
- Do you need notifications while the user is not actively focused on Teams, or only while Teams is open?
- Are you able to support an installed PWA (same URL, installable) as the “always-on + notifications” runtime, with Teams acting as the entry point?