0
votes

Overview:

Before I go too deep into the documentation, I wanted to ask a few basic questions.

My goal of all this is to customize the default message notifications, which appear in the lower right hand corner of the screen, specifically when chatting in MS Teams. Note I am interested only in Windows, not mobile.

Use case:

I send the GitHub Bot a bogus chat message, just to show a notification coming in for demonstration purposes:

Notification

This notification will disappear after some predetermined amount of time (around ~15s, at least on my machine)

Question(s):

Would it be possible to create a message extension of sorts, which wraps the default messaging behavior?

For example, I would want to:

  1. Let the notification sit in the lower right hand corner until acted upon, rather than have it disappear. Or, is this the behavior of the OS, rather than Teams?

  2. Change the color, and format of the message. Effectively, intercept the message, and display it in different format, font, color, icon etc.

  3. I only see notifications in the lower right hand corner, if and only if Teams is minimized, or out of view. Would it be possible, if intercepted, to display the notification, regardless if Teams has focus, and is in the foreground. For example, if I am in Teams, and a notification appears (say someone sends me a message), the ‘Chat’ icon in the upper left hand corner will display an alert. I would like to also have the notification appear in the lower right hand corner of the screen.

  4. Lastly, say for example Teams is in the foreground, and you receive a notification. By default, the Teams icon in the toolbar will flicker and update the badge number on the icon. Is there any way for a developer to update the icon, or possibly draw additional attention to the icon, aside from the red badge.

Note that these are all things I would like to do from a personal standpoint. The odds of another developer wanting these sort of changes are slim to none, which is why I would like to build something myself, opposed to a file feature request.

Of course, anything is possible, but I don’t want to hack something together that will break in a week. I’d rather see if I can build upon whatever API’s are out there to do this sort of thing.

Note that I'm not looking for a solution, but rather a brief yes or no for the questions above, and possibly a pointer to specific documentation that could aid in my investigation.

Thanks!

1

1 Answers

0
votes

Just to circle back on this. I spoke to one of their support devs, who was extremely helpful.

I've summarized his response below for reference.

Note that the list below corresponds to the order of questions asked above:

  1. It behaves as per OS. On Windows, notifications will show in the bottom right corner of your screen, then move to the Action Center. On Mac OS, these show up in the top right corner of your screen, then move to the Control Center.

  2. You could change the notification text if you are sending it from a user app. But not all notification are shown from Teams. Font, color and icon are displayed as per Teams theme and cannot be modified.

  3. This is currently not possible. A Custom App inside a team has limited access (scope). For example if you have installed an app inside a teams channel, then it has limited scope to send or receive operations only inside that channel.

  4. This is also not possible.

So in summary, in relation to the original posted question, it is not possible at this time to customize the default Message behavior in Teams.

Also, I was using the terms Message and Notification interchangeably, which is incorrect.

It would appear as though Notifications are really what the OS displays, and as such, defines it's default behavior. The application, in this case MS-Teams, controls the visual display characteristics of that Notification, for example color/font/icon, based on the UI theme of teams.

Conversely, Messages or Message Extensions, are quite different from Notifications. Using Message Extension, the user can search, or initiate actions, in an external system from the compose message area, the command box, or directly from a message. You can then send the results of that interaction back to the Microsoft Teams client, typically in the form of a richly formatted card.