Share via

Deeplink with sendActivityNotification not working on teams mobile app

Ralfh Barten 0 Reputation points
2023-06-19T10:38:53.04+00:00

When I send an activity notification using 'source': 'entityUrl'. The user is able to open the app from the activity feed notification on both Teams desktop client and mobile client. But we would like to use deep linking and provide extra context, I didn't found any way to do that using 'source' 'entityurl'.

When I use 'source': 'Text' and a 'WebUrl', then the deeplinking is working in the desktop client, but it doesn't work in de Mobile client. The app isn't opening.

We have met requirements below:

-The Teams app manifest has the Azure AD app ID added to the webApplicationInfo section.
-Activity type is declared in the activities section.
-The Teams app is installed as a personal app for the recipient

It is working in de Desktop App, but in mobile we only get the notification and we cannot click on it. Nothing happens.

Is there a way to solve this issue?

See below both calls with entityurl and text.

Below call is working on Teams desktop and I'm also able to read out the subEntityId value. But it's not working on mobile client..

	POST https://graph.microsoft.com/v1.0/users/[user]/teamwork/sendActivityNotification

{
"topic": {
"source": "entityUrl",
"value": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/[appid]?context={\"subEntityId\":\"123456\"}"
},
"activityType": "approvalRequest",
"previewText": {
"content": "This is the approval text"
},
"templateParameters": [
{
"name": "approvalid",
"value": "6788662"
}
]
}

Below call is working on both Teams desktop and mobile client. But then i'm not able to provide any context or subEntityId value

{
"topic": {
"source": "Text",
"Value": "New PO Approval",
"WebUrl": "https://teams.microsoft.com/l/entity/11ba4527-a31d-4a19-866f-c25edd51ad6d/approvals?context={\"subEntityId\":\"123456\"}"
},
"activityType": "approvalRequest",
"previewText": {
"content": "This is the approval text"
},
"templateParameters": [
{
"name": "approvalid",
"value": "6788662"
}
]
}`
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

Your answer

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