OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
453 stars 186 forks source link

Teams mobile notifications deep links from Microsft Graph (sendActivityNotification) are not deep linking #4544

Open YorkeNW06 opened 2 years ago

YorkeNW06 commented 2 years ago

We are sending notifications to users through graph. Notifications are working on all platforms, however, the deep link functionality is not working on all platforms. Deep linking to a personal app and channel app are working fine in Desktop. Deep linking to a channel in Andriod is not working. Deep linking on iOS does not seem to work at all.

Desktop: Personal Scope: Works Team Scope: Works

Andriod: Personal Scope: Works Team Scope: Broken

iOS: Personal Scope: Broken Team Scope: Broken

Here are two sendActivityNotification graph request:

Personal Scope:

[EightBot.Nebula.RestClient------------------------------------------------- Start] Base Address https://graph.microsoft.com/ Request Uri v1.0/users/a57a464e-71f6-4019-84b4-86acfd710047/teamwork/sendActivityNotification Full Url https://graph.microsoft.com/v1.0/users/a57a464e-71f6-4019-84b4-86acfd710047/teamwork/sendActivityNotification Method POST Request Header Accept-Encoding - gzip Request Header Authorization - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IkdfRFF1Um9fRjN2MEMyTWNocExmUjctbEg0Wk9nb1VjMXI1RzBPM0J3VXMiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC84MjIyNjc2My1mNTI2LTQ4NTgtYTEwOC1lMDUxN2MyYWFiNDEvIiwiaWF0IjoxNjQ5MjUzODM0LCJuYmYiOjE2NDkyNTM4MzQsImV4cCI6MTY0OTI1NzczNC... Request Header Content-Type - application/json Request Content {"topic":{"@odata.type":"#microsoft.graph.teamworkActivityTopic","source":"text","value":"New text message","webUrl":"https://teams.microsoft.com/l/entity/f56c551e-73cc-4416-a977-482fdfde966f/textingtab?context={\"subEntityId\":\"1b358864-f756-47dd-9f78-7612d7897282\",\"id\":\"0c550e44-050d-44fc-b770-951d77cbecf5\"}"},"activityType":"textReceived","chainId":5178567095741679716,"previewText":{"content":"Test","contentType":"text"},"templateParameters":[{"name":"from","value":"Nathan"}],"recipient":null} Response Received 04/06/2022 14:10:09 +00:00 (549ms) Read 04/06/2022 14:10:09 +00:00 (0ms) Response Header Strict-Transport-Security - max-age=31536000 Response Header request-id - 69e9d257-dfc8-46a1-9750-c75ac42face4 Response Header client-request-id - 69e9d257-dfc8-46a1-9750-c75ac42face4 Response Header x-ms-ags-diagnostic - {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"3","ScaleUnit":"004","RoleInstance":"CH01EPF000100FC"}} Response Header Date - Wed, 06 Apr 2022 14:10:08 GMT Response Message No Content Response Status 204 Response Content
Deserialization Start 04/06/2022 14:10:09 +00:00 Deserialization End 04/06/2022 14:10:09 +00:00 (0ms) Finished 04/06/2022 14:10:09 +00:00 (549.7823ms) [EightBot.Nebula.RestClient------------------------------------------------- End]

Team Scope:

[EightBot.Nebula.RestClient------------------------------------------------- Start] Base Address https://graph.microsoft.com/ Request Uri beta/teams/04e36278-bfa7-40fd-8d28-4298d45d2d78/sendActivityNotification Full Url https://graph.microsoft.com/beta/teams/04e36278-bfa7-40fd-8d28-4298d45d2d78/sendActivityNotification Method POST Request Header Accept-Encoding - gzip Request Header Authorization - Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IlhibFNRVURZZmJiQTFzaDVtRlZVVmVyWi1BUmx1SzhfZHJrcXhYYmRCZkEiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC84MjIyNjc2My1mNTI2LTQ4NTgtYTEwOC1lMDUxN2MyYWFiNDEvIiwiaWF0IjoxNjQ5MjUxNDU5LCJuYmYiOjE2NDkyNTE0NTksImV4cCI6MTY0OTI1NTM1OSwiY... Request Header Content-Type - application/json Request Content {"topic":{"@odata.type":"#microsoft.graph.teamworkActivityTopic","source":"text","value":"New text message","webUrl":"https://teams.microsoft.com/l/entity/bde18e4b-6bdc-4d96-a38d-0bb26adcb20e/textingchanneltab?context={\"channelId\":\"19:53c7da97ce084b75b16ed6daa55f9322@thread.tacv2\",\"subEntityId\":\"353b759a-1088-464a-8f84-b60e53de3302\"}"},"activityType":"textReceived","chainId":5064878908126229914,"previewText":{"content":"Test ","contentType":"text"},"templateParameters":[{"name":"from","value":"Nate"}],"recipient":{"@odata.type":"microsoft.graph.teamMembersNotificationRecipient","teamId":"04e36278-bfa7-40fd-8d28-4298d45d2d78"}} Response Received 04/06/2022 14:19:46 +00:00 (848ms) Read 04/06/2022 14:19:46 +00:00 (0ms) Response Header Strict-Transport-Security - max-age=31536000 Response Header request-id - 22ec1e6b-f4db-4b51-81e1-76cdda4c7119 Response Header client-request-id - 22ec1e6b-f4db-4b51-81e1-76cdda4c7119 Response Header x-ms-ags-diagnostic - {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"CH01EPF00011B1D"}} Response Header Date - Wed, 06 Apr 2022 14:19:46 GMT Response Message No ContentResponse Status 204 Response Content Deserialization Start 04/06/2022 14:19:46 +00:00 Deserialization End 04/06/2022 14:19:46 +00:00 (0ms) Finished 04/06/2022 14:19:46 +00:00 (848.3411ms) [EightBot.Nebula.RestClient------------------------------------------------- End]

Thanks!

ghost commented 2 years ago

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

adashen commented 2 years ago

@YorkeNW06 raised the issue to teams team https://github.com/MicrosoftDocs/msteams-docs/issues/5697