MS teams is not sending the notifications to my application when a new message is posted in the chat by MS teams client

Atul Choudhari 5 Reputation points
2024-07-29T09:09:58.4233333+00:00

MS teams is not sending the notifications to my application when a new message is posted in the chat by MS teams client

We are using MS graph APi to get message by userid, but the problem is when user send a message then notification is not coming in application

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-07-30T09:21:56.5166667+00:00

    Hi @Atul Choudhari

    If you need to receive notifications through the app, you need to create a subscription, and after you create a subscription to a chat resource, you can receive notifications through the app.

    To create a subscription please see the link below:

    https://learn.microsoft.com/en-us/graph/change-notifications-overview

    https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

  2. Atul Choudhari 5 Reputation points
    2024-07-31T04:44:58.5566667+00:00

    Hello @Anonymous - We are already creating MSTeamsSubscription for the resource using NotificationUrl. additioanlly we have a valid azure subscription plan with primum uses.

    I will expalin some in details-

    We have a client dekstop application-> from client application we are initiating chat -> Once chat initiated group will be created in MSteams with other users. Now another user in same group will post any message in that chat group, that time notification should be come in application to read the message same & message will be published in client application.

    Now one way is working like - group is creating in MSTeams & Message is posted successfully but response is not coming when new message is posted in the MSTeams. So the return flow is not working.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.