Microsoft Tech Community Live:  Microsoft Teams Edition
November 09, 2021, 08:00 AM - 12:00 PM (PST)

In-app notifications for apps in MS teams

%3CLINGO-SUB%20id%3D%22lingo-sub-2744719%22%20slang%3D%22en-US%22%3EIn-app%20notifications%20for%20apps%20in%20MS%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2744719%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20developing%20an%20app%20for%20MS%20Teams.%20I%20want%20the%20app%20to%20send%20in-app%20notifications%20to%20user%2C%20to%20engage%20the%20user%20and%20draw%20his%2Fher%20attention%20on%20action%20item.%20Could%20someone%20please%20guide%20how%20can%20I%20make%20that%20possible%3F%20I%20am%20unable%20to%20locate%20documentation%20for%20it.%20I%20don't%20want%20to%20send%20messages%2F%20cards%20in%20channels%20via%20bot.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2744719%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2744780%22%20slang%3D%22en-US%22%3ERe%3A%20In-app%20notifications%20for%20apps%20in%20MS%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2744780%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1153984%22%20target%3D%22_blank%22%3E%40lakshay451%3C%2FA%3E%2C%3CBR%20%2F%3EYou%20can%20refer%20below%20document%20to%20share%20activity%20feed%20notifications%20to%20user.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fteams-send-activityfeednotifications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fteams-send-activityfeednotifications%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20will%20need%20to%20add%20teamsActivity.Send%20Application%20level%20permission%20for%20you%20app%20to%20send%20notifications.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2785081%22%20slang%3D%22en-US%22%3ERe%3A%20In-app%20notifications%20for%20apps%20in%20MS%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2785081%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1153984%22%20target%3D%22_blank%22%3E%40lakshay451%3C%2FA%3E%20-%20Please%20let%20us%20know%20if%20you%20still%20need%20any%20help.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThanks%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EChetan%20Sharma%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20the%20response%20is%20helpful%2C%20please%20click%20%22**%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E**%22%20and%20like%20it.%20You%20can%20share%20your%20feedback%20via%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevSupportFeedback)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EMicrosoft%20Teams%20Developer%20Feedback%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Blink.%20Click%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevCommunityEscalationForm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20escalate.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2787692%22%20slang%3D%22en-US%22%3ERe%3A%20In-app%20notifications%20for%20apps%20in%20MS%20teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2787692%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F983385%22%20target%3D%22_blank%22%3E%40ChetanSharma%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20activity%20feed%20notification%2C%20is%20it%20possible%20to%20send%20notifications%20in%20apps%20that%20are%20added%20in%20MS%20Teams%20%3F%3CBR%20%2F%3EAlso%2C%20can%20I%20send%20this%20activity%20feed%20notification%20using%20Logic%20apps%20based%20on%20some%20trigger%20%3F%20If%20yes%2C%20could%20you%20share%20some%20documentation%20how%20%3F%3C%2FLINGO-BODY%3E
Microsoft

I am working on developing an app for MS Teams. I want the app to send in-app notifications to user, to engage the user and draw his/her attention on action item. Could someone please guide how can I make that possible? I am unable to locate documentation for it. I don't want to send messages/ cards in channels via bot.

 

Thanks in advance.

7 Replies
Hi @lakshay451,
You can refer below document to share activity feed notifications to user.
https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications

You will need to add teamsActivity.Send Application level permission for you app to send notifications.

Thanks

@lakshay451 - Please let us know if you still need any help.

Thanks, 

Chetan Sharma

------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

@ChetanSharma

This is activity feed notification, is it possible to send notifications in apps that are added in MS Teams ?
Also, can I send this activity feed notification using Logic apps based on some trigger ? If yes, could you share some documentation how ?
Hi @lakshay451,
It will not be possible to send notifications inside app that are installed in teams. However if you want to send notification to a particular app you can integrate bot and send proactive message.
Also you can send activity feed notifications using logic app. You will have to trigger the graph API mentioned here https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications
"send notification to a particular app you can integrate bot and send proactive message"
Could you tell how can this be achieved ?

@lakshay451 It's not clear how you define "in-app notifications", however you have multiple ways to tackle this.

 

  1. Send a chat message to a user or channel message to a team, with your desired content and a deep link to content within your app. The message may be formatted as plain text, markdown or as an adaptive card
  2. Build UI inside your app that draws attention to particular contents of your app. This will not draw attention to your app, but to particular content within your app. This could be coachmarks, teaching bubbles, first-run splash screens, etc

You can send messages using a custom bot you implement, or using Microsoft Teams connector from a Power Automate flow or Azure Logic App.

 

Some relevant links:

 

 

By "in-app notifications" I mean bubble notification kind of thing which conveys number of messages that are unread in "Chat"/ number of activities under "Bell" icon (currently available in Teams)