Microsoft Teams可配置选项卡“团队”范围不起作用

时间:2020-03-31 08:30:18

标签: microsoft-teams

我使用Teams Apps生成器创建了一个新的Teams应用程序。我选择了可​​配置标签->作用域“团队”和“群组聊天”:

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
  "manifestVersion": "1.5",
  "id": "dfbf6890-7268-11ea-ad8e-3f4752fcafa2",
  "version": "0.0.1",
  "packageName": "test4",
  "developer": {
    "name": "dev",
    "websiteUrl": "https://{{HOSTNAME}}",
    "privacyUrl": "https://{{HOSTNAME}}/privacy.html",
    "termsOfUseUrl": "https://{{HOSTNAME}}/tou.html"
  },
  "name": {
    "short": "test4",
    "full": "test4"
  },
  "description": {
    "short": "TODO: add short description here",
    "full": "TODO: add full description here"
  },
  "icons": {
    "outline": "icon-outline.png",
    "color": "icon-color.png"
  },
  "accentColor": "#D85028",
  "configurableTabs": [
    {
      "configurationUrl": "https://{{HOSTNAME}}/smensocloudTab/config.html",
      "canUpdateConfiguration": true,
      "scopes": [
        "team",
        "groupchat"
      ]
    }
  ],
  "staticTabs": [],
  "bots": [],
  "connectors": [],
  "composeExtensions": [],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "{{HOSTNAME}}"
  ]
}

但是当我将应用程序侧面加载到团队中进行测试时,我只会看到“添加到聊天”,而没有看到“添加到团队”。 请参阅所附的屏幕截图(第一手是这样,第二是我想要的是)。 我该如何解决?

enter image description here

1 个答案:

答案 0 :(得分:1)

我找到了,

如果有人遇到同样的问题。 删除空的定义:

  "staticTabs": [],
  "bots": [],
  "connectors": [],
  "composeExtensions": []

那为我们解决了这个问题。