MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
288 stars 511 forks source link

Teams desktop cannot open task modules #7903

Closed suckseed5 closed 1 year ago

suckseed5 commented 1 year ago

I try to use task modules to open the html page, and it can be opened on the web side, but it cannot be opened on the desktop version. What is the reason? Thanks!

image image

This is handleTeamsTaskModuleFetch: if (cardTaskFetchValue === "feedbackSubmit") { taskInfo.url = taskInfo.fallbackUrl = 'https://156e-38-83-110-6.ngrok.io'+'/CustomForm.html'; this.setTaskInfo(taskInfo, TaskModuleUIConstants.CustomForm);

This is manifest.json: { "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.14/MicrosoftTeams.schema.json", "manifestVersion": "1.14", "version": "1.0.0", "id": "69fd48bf-078f-4eca-a79a-ee62c106584a", "packageName": "com.microsoft.teams.extension", "developer": { "name": "Teams App, Inc.", "websiteUrl": "https://www.example.com", "privacyUrl": "https://www.example.com/termofuse", "termsOfUseUrl": "https://www.example.com/privacy" }, "icons": { "color": "resources/color.png", "outline": "resources/outline.png" }, "name": { "short": "AskWSD", "full": "Ask Workplace Solutions Division" }, "description": { "short": "Teams client app for WSD", "full": "Teams client app for AskWSD which helps users solve problems" }, "accentColor": "#FFFFFF", "bots": [ { "botId": "c656a6a5-009c-4935-826b-2506ae92d286", "scopes": [ "personal", "team", "groupchat" ], "supportsFiles": false, "isNotificationOnly": false, "commandLists": [ { "scopes": [ "personal", "team", "groupchat" ], "commands": [ { "title": "welcome", "description": "Resend welcome card of this Bot" }, { "title": "choose bot", "description": "select bot to ask" } ] } ], "messageHandlers": [ { "type": "link", "value": { "domains": [ "156e-38-83-110-6.ngrok.io" ], "supportsAnonymizedPayloads": false } } ] } ], "composeExtensions": [], "configurableTabs": [], "staticTabs": [], "permissions": [ "identity", "messageTeamMembers" ], "validDomains": [ "156e-38-83-110-6.ngrok.io" ] }

ghost commented 1 year ago

Hi suckseed5! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

ChetanSharma-msft commented 1 year ago

Hello @suckseed5 - Thanks for reporting your issue. We will investigate and let you know the updates.

sayali-MSFT commented 1 year ago

@suckseed5 -We are not able to repro the issue, it's working fine from our end. Microsoft Teams Version 1.6.00.869 (64-bit) Could you please check it once with the below sample? sample link-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-task-module/nodejs

suckseed5 commented 1 year ago

@sayali-MSFT -I am a bot project created directly with the teams toolkit tool. Microsoft Teams Version 1.5.00.33362 (64-bit) This is the error reported by the background: ["CID[main] useTaskModuleHook: error launching task module for entry point 0. errorCode: undefined, errorName: Error, innerErrorCode: undefined Error:",{"context":"ExtensionCommanding","subContext":"","code":"AlreadyInProgress"}]

sayali-MSFT commented 1 year ago

@suckseed5 -Thanks for the detail information, we are trying it from our end and let you know the update.

sayali-MSFT commented 1 year ago

@suckseed5 -We are not able to repro the issue as you mention above, could you please share the repro steps so that we can try it from our end. also got the related issue-https://learn.microsoft.com/en-us/answers/questions/836655/teams-bot-task-modules-not-opening-for-some-users

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.