Force Microsoft Teams to use OS-native Notifications
Using Microsoft Teams, I get ugly purple no-padding notifications on my Desktop:
In addition to being non-standard, these alerts do not respect my system's Do Not Disturb settings.
How can I force Microsoft Teams to use the operating system's default notifications UI instead?
- macOS Notification Center
- Windows 10 Notifications
Solution 1:
There seems to be a development option enableNativeNotification
that will enable system notifications in Microsoft teams. I unfortunately cannot try this myself, as the development preview needed to enable the option is not enabled for my organization.
Information taken from this Reddit post which provided these screenshots.
FWIW for anyone frustrated at the custom notifications, you can enable Native Notifications by throwing Teams into developer mode and then left clicking the Teams tray icon 7 times. Right clicking will then give you tons of options, including Hooks. From here, you can enable Native Notifications (defaults to false, so turn it to true) and voila, native notifications.
The steps seem to be:
- Enable the Public Developer Preview for Microsoft Teams
- Note: Developer preview is enabled on a per-client basis, but the option to turn on developer preview is controlled at the organization level.
- See the Answer below for a possible workaround if your org restricts access.
- Note: Developer preview is enabled on a per-client basis, but the option to turn on developer preview is controlled at the organization level.
- Tap on your app icon 7 times to enable the dev tools:
- Windows: System Tray icon
- macOS: Dock icon
- Access the Developer Preview tools:
- Windows: Right-click the System Tray icon. Select
Open DevTools
. - macOS: select "Development" from the app's main menu bar. You can also edit the settings directly at
~/Library/Application\ Support/Microsoft/Teams/settings.json
- Windows: Right-click the System Tray icon. Select
- Set the following options to
true
:enableNativeNotification
,enableMacNativeNotification
- Restart Microsoft Teams
If all goes well, Teams should then use the system's native notification system:
Solution 2:
OS-Native Teams Notifications can be enabled even if your organization disabled beta access, by modifying the settings request with a proxy software such as Charles or Proxyman.
I found the following instructions on the macOS UserVoice ticket mentioned above:
Instructions:
- Install and open Proxyman
- Select "certificate > install certificate on this mac" from the menu and follow the steps
- enable https response for teams.microsoft.com
- option-click on teams.microsoft.com > tools > scripting
- create new script for
https://teams.microsoft.com/package/desktopclient/settings/osx
with the followingonResponse
function:
function onResponse(context, url, request, response) {
// Update Body
var body = response.body;
body["settings"]["enableNativeNotification"] = true;
body["settings"]["enableMacNativeNotification"] = true;
response.body = body;
// Done
return response;
}
Solution 3:
The Teams development team is testing and adding Native Notifications for Windows, macOS, and Linux. The tickets, created in 2016, have been updated in December 2020 indicating that the feature will be released in early 2021.
These requests are tracked on the Microsoft Teams User Feedback Forum:
-
Integrate with MacOS notifications (November 2016)
- ⚠️ on 2021 roadmap
-
Integrate with Windows 10 notification center (November 2016)
- ✅ Implemented for Windows April 2021
-
Introduce Freedesktop dbus notifications for Linux (December 2019)
- ✅ Implemented for Linux December 2020