Open
Description
Target Platforms
Android
SDK Version
1.5
Application Name
Microsoft Teams
Problem Description
Adaptive Card with actions using mode=secondary do not open a menu on Android in Teams Task Dialogs. To reproduce create a staticTab with contentUrl, open a teams with example javascript. Works as expected on web/desktop/ios, only Android issue.
Use example card below. Open in Android and observe non-functional behavior shown in video.
Screenshots
bug.mp4
Card JSON
{
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"wrap": true,
"text": "Case"
}
]
},
{
"type": "Column",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Edit",
"mode": "secondary",
"data": {
"actionid": "EDIT",
"metadata": {
"formId": "a01Ov00000fIN9rIAG"
},
"msteams": {
"type": "task/fetch"
}
}
},
{
"type": "Action.Submit",
"title": "Delete",
"mode": "secondary",
"style": "negative",
"data": {
"actionid": "DELETE_FORM",
"metadata": {
"formId": "a01Ov00000fIN9rIAG"
},
"msteams": {
"type": "task/fetch"
}
}
}
]
}
]
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "New Form",
"style": "positive",
"data": {
"actionid": "APP_HOME_NEW_FORM",
"msteams": {
"type": "task/fetch"
}
}
}
]
}
]
}
Sample Code Language
JavaScript
Sample Code
let taskInfo = { title: action.title, size: { width: 520, }, card: JSON.stringify(card), completionBotId: botId, }; dialog.adaptiveCard.bot.open(taskInfo, (err, result) => { if (err) console.log(err); if (result) console.log(result); });