Can't receive message in mobile app

Robert Han 0 Reputation points
2024-09-14T06:26:53.32+00:00

I used api to send Acitivity Feed Notification to teams user, and can receive the message in web app, but can't receive in my mobile phone.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,265 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 2,416 Reputation points Microsoft Vendor
    2024-09-30T09:08:05.6933333+00:00

    @Robert Han- We followed this sample (https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-activity-feed/nodejs) and were able to get activity feed notification in both MS Teams Desktop, Web and mobile client.

    *MS Teams Version IOS: 6.17.77.2024173101/0919
    MS Teams Version Android: 1416/1.0.0.2024162202/0827

    Also check,* the app is needs to be added to a mobile whitelist.

    POST https://graph.microsoft.com/v1.0/teams/xxxxb29b-2dde-4682-xxxx-4ec85e5bxxxx/sendActivityNotification
    
    {
        "topic": {
            "source": "entityUrl",
            "value": "https://graph.microsoft.com/v1.0/teams/xxxxb29b-2dde-4682-xxxx-4ec85e5bxxxx"
        },
        "activityType": "pendingFinanceApprovalRequests",
        "previewText": {
            "content": "Internal spending team has a pending finance approval requests"
        },
        "recipient": {
            "@odata.type": "microsoft.graph.aadUserNotificationRecipient",
            "userId": "xxxx3913-2766-4e6f-9edb-90d52bfxxxxx"
        },
        "templateParameters": [
            {
                "name": "pendingRequestCount",
                "value": "5"
            }
        ]
    }
    
    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.