Forum Discussion
NadirRiyani
Mar 20, 2020Brass Contributor
Hero card does not load in Desktop MS Teams App, but It works fine in Web MS Teams version
Hi, I have populated one Hero card using Event called OnTeamsTaskModuleFetchAsync. The Popup is not getting load in MS Teams Windows environment. but its getting load in Web version. I'vetried...
- Apr 01, 2020
NadirRiyani - We could reproduce the issue on our side. Raised a bug for this.
Nikitha-MSFT
Microsoft
Mar 23, 2020NadirRiyani - TaskModule currently supports only Adaptive card and Html pages as documented here. It is not possible to open a Hero card inside a task module. However, you can invoke a TaskModule from a Hero card. The screenshot you shared does not look like a herocard. Could you please share more details on what you are trying.
- NadirRiyaniMar 23, 2020Brass Contributor
Nikitha-MSFT : Thanks for the quick response. The process as below.
1. Display Hero card with one button
2. Open Webpage on Button click.
Now the issue is, I am able to see Task Module in MS Team Web but on Windows MS Team setup it works exceptionally. (Some time it works, sometimes it does not). Is it known or expected?
OR Correct me if any correction required in code here
issue image added on first request.
protected override async Task<TaskModuleResponse> OnTeamsTaskModuleFetchAsync(ITurnContext<IInvokeActivity> turnContext, TaskModuleRequest taskModuleRequest, CancellationToken cancellationToken) { return new TaskModuleResponse { Task = new TaskModuleContinueResponse { Value = new TaskModuleTaskInfo() { Url = AppSettings.WebLink + "/configurepage", Height = 410, Title = "Configuration Settings", }, }, }; }
- Nikitha-MSFTMar 24, 2020
Microsoft
NadirRiyani - We could not repro the issue on our side. Could you please share a screenshot of the page you are trying to load in web. Does this require any user Authentication?
- NadirRiyaniMar 26, 2020Brass Contributor
Nikitha-MSFT Image I have already attached in the earlier requests. Let me share the steps, how my application works.
- Run Bot command. It will return one Hero card with one CardAction Button (i.e. Configure Button caption).
- On Button Click -> It will come to Event -> OnTeamsTaskModuleFetchAsync
- Code in event OnTeamsTaskModuleFetchAsync as below.
return new TaskModuleResponse { Task = new TaskModuleContinueResponse { Value = new TaskModuleTaskInfo() { Url = "www.website.com/configurepage", Height = 410, Title = "Configuration the App", }, }, };
4. The above code will open one pop up as Task Module.
5. This webpage contains three text boxes and one button.
6. The user input would be saved in the database on button click event (resides under webpage).
Here the issue in Point no 4 (Pop up containing webpage)
MS Team Windows App - Pop up open with empty page. This behavior is not consistent. Some time it works fine and sometimes it does not work. I have attached a screenshot in an earlier communication. And I have shared image error in the Dev Preview environment.
MS Teams Web Version (chrome) - it works fine every time in MS Teams Web version.
That might be possible that you are not able to reproduce this issue because of it works fine in my environment too(since the last three days).
I would request you to keep this case open for further detailed investigation.