Task Module Delay on Mobile When Using Action.Submit with Task/Fetch in Adaptive Cards
Hello, I’ve developed a bot in Microsoft Teams that, upon submission of an Adaptive Card, performs an external API call with the submitted data and returns the result. The API communication takes around 10 seconds to complete.
To display the result to the user, I set up an action button in the bot with msteams: {type: ‘task/fetch’} so that a task module is triggered. On desktop, the task module opens immediately, displaying a loading spinner inside the module. However, on mobile, the action button temporarily becomes disabled, reverts back, and then, after a delay, the task module appears.
I’m concerned that mobile users might interpret the lack of immediate feedback as the button not working or the action not being registered. Is there a way to make the mobile behavior more consistent with desktop, or to ensure immediate feedback to the user upon pressing the action button?
I have also included the JSON for the Adaptive Card below for your reference.
{ “type”: “AdaptiveCard”, “$schema”: “http://adaptivecards.io/schemas/adaptive-card.json“, “version”: “1.6”, “body”: [ { “type”: “TextBlock”, “text”: “ㅋㅋㅋㅋㅋㅋㅋㅋ”, “size”: “Default”, “weight”: “Bolder”, “color”: “Default”, “wrap”: true } ], “actions”: [ { “type”: “Action.Submit”, “title”: “action submit”, “data”: { “msteams”: { “type”: “task/fetch” }, “approveInfo”: { “userId”: “111111111”, }, “cardData”: { “title”: “zzzzzzzzz”, } } } ] }
Hello, I’ve developed a bot in Microsoft Teams that, upon submission of an Adaptive Card, performs an external API call with the submitted data and returns the result. The API communication takes around 10 seconds to complete.To display the result to the user, I set up an action button in the bot with msteams: {type: ‘task/fetch’} so that a task module is triggered. On desktop, the task module opens immediately, displaying a loading spinner inside the module. However, on mobile, the action button temporarily becomes disabled, reverts back, and then, after a delay, the task module appears.I’m concerned that mobile users might interpret the lack of immediate feedback as the button not working or the action not being registered. Is there a way to make the mobile behavior more consistent with desktop, or to ensure immediate feedback to the user upon pressing the action button? I have also included the JSON for the Adaptive Card below for your reference. { “type”: “AdaptiveCard”, “$schema”: “http://adaptivecards.io/schemas/adaptive-card.json”, “version”: “1.6”, “body”: [ { “type”: “TextBlock”, “text”: “ㅋㅋㅋㅋㅋㅋㅋㅋ”, “size”: “Default”, “weight”: “Bolder”, “color”: “Default”, “wrap”: true } ], “actions”: [ { “type”: “Action.Submit”, “title”: “action submit”, “data”: { “msteams”: { “type”: “task/fetch” }, “approveInfo”: { “userId”: “111111111”, }, “cardData”: { “title”: “zzzzzzzzz”, } } } ] } Read More