自适应卡提交操作在iOS移动应用上的MS Teams中不起作用

问题描述 投票:0回答:1

我们正在开发一个跨平台的机器人。在iOS移动设备上使用时,自适应卡片按钮在MS Teams中似乎没有响应。机器人完全没有响应。通过台式机或Android设备上的Web浏览器或MS Teams应用程序访问MS Teams时,卡将按预期响应。

这里是JSON,其文本在运行时被替换。

{
   "type": "AdaptiveCard",
   "version": "1.0",
   "body": [
      {
         "type": "Container",
         "items": [
            {
               "type": "TextBlock",
               "text": "<heading>",
               "wrap": true
            }
         ]
      },
      {
         "type": "Container",
         "items": [
            {
               "type": "ColumnSet",
               "columns": [
                  {
                     "type": "Column",
                     "width": "stretch",
                     "items": [
                        {
                           "type": "TextBlock",
                           "text": "<Option1>",
                           "horizontalAlignment": "Center",
                           "weight": "Light",
                           "separator": true,
                           "color": "Accent"
                        }
                     ],
                     "id": "1",
                     "selectAction": {
                        "type": "Action.Submit",
                        "title": "actionButton",
                        "data": {
                           "msteams": {
                              "type": "imBack",
                              "value": "{3}"
                           }
                        }
                     },
                     "horizontalAlignment": "Center",
                     "style": "emphasis"
                  },
                  {
                     "type": "Column",
                     "width": "stretch",
                     "separator": true,
                     "items": [
                        {
                           "type": "TextBlock",
                           "text": "<Option2>",
                           "horizontalAlignment": "Center",
                           "weight": "Light",
                           "separator": true,
                           "color": "Accent"
                        }
                     ],
                     "id": "2",
                     "selectAction": {
                        "type": "Action.Submit",
                        "title": "actionButton",
                        "data": {
                           "msteams": {
                              "type": "imBack",
                              "value": "{4}"
                           }
                        }
                     },
                     "horizontalAlignment": "Center",
                     "style": "emphasis"
                  }
               ]
            }
         ]
      }
   ],
   "$schema": "http:adaptivecards.ioschemasadaptive-card.json"
}
c# ios botframework microsoft-teams adaptive-cards
1个回答
0
投票

我怀疑这是实际原因,但是您的模式错误-应该是:

"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
热门问题
推荐问题
最新问题