MS Team Bot中的composeExtensions函数不适用于iOS Team应用

时间:2020-08-25 20:23:14

标签: microsoft-teams

我在Microsoft Teams中以及在Teams-in-browser和所有Teams Apps'flavors' EXCEPT iOS 中都具有一个可以正常工作的机器人,可以在机会/公司/案例之间进行切换预期的(即在后端执行不同的搜索,然后返回结果)。

在iOS中,默认情况下选择的撰写扩展名(在我的情况下为Opportunities)可以正常工作,但是更改所选的撰写扩展名(公司,案例等)不会更改来自后端的结果。

其他人有没有经历过这种行为?这是Teams在iOS实施中的错误吗?

In Teams-in-the-browser and all Teams Apps 'flavours' EXCEPT iOS, switching between Opportunities/Companies/Cases etc. works as intended

应用清单,根据要求:

    {
    "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
    "manifestVersion": "1.3",
    "version": "1.0.2",
    "id": "{{ appid }}",
    "packageName": "{{ packagename }}",
    "developer": {
        "name": "{{ name }}",
        "websiteUrl": "{{ website }}",
        "privacyUrl": "{{ privacy }}",
        "termsOfUseUrl": "{{ terms }}"
    },
    "name": {
        "short": "{{ shortname }}",
        "full": "{{ fullname }}"
    },
    "description": {
        "short": "{{ shortdescr}}",
        "full": "{{ fulldescr }}"
    },
    "icons": {
        "outline": "logo32x32.png",
        "color": "logo192x192.png"
    },
    "accentColor": "#FFFFFF",
    "staticTabs": [
        {
            "entityId": "{{ packagename }}",
            "name": "Dashboard",
            "contentUrl": "{{ appurl }}/dashboard",
            "scopes": [
                "personal"
            ]
        }
    ],
    "configurableTabs": [
        {
            "configurationUrl": "{{ appurl }}/configure",
            "canUpdateConfiguration": true,
            "scopes": [
                "team"
            ]
        }
    ],
    "bots": [
        {
            "botId": "{{ botid }}",
            "needsChannelSelector": false,
            "isNotificationOnly": false,
            "scopes": [
                "team",
                "personal"
            ]
        }
    ],
    "composeExtensions": [
        {
            "botId": "{{ botid }}",
            "canUpdateConfiguration": true,
            "commands": [
                {
                    "id": "searchOpportunities",
                    "description": "Search the Opportunities",
                    "title": "Opportunities",
                    "initialRun": true,
                    "parameters": [
                        {
                            "name": "searchOppo",
                            "description": "Search the Opportunities",
                            "title": "Opportunities"
                        }
                    ]
                },
                {
                    "id": "searchCompanies",
                    "description": "Search the Companies",
                    "title": "Companies",
                    "initialRun": true,
                    "parameters": [
                        {
                            "name": "searchComp",
                            "description": "Search the Companies",
                            "title": "Companies"
                        }
                    ]
                },
                {
                    "id": "searchCases",
                    "description": "Search the Cases",
                    "title": "Cases",
                    "initialRun": true,
                    "parameters": [
                        {
                            "name": "searchCase",
                            "description": "Search the Cases",
                            "title": "Cases"
                        }
                    ]
                },
                {
                    "id": "searchPeople",
                    "description": "Search the People",
                    "title": "People",
                    "initialRun": true,
                    "parameters": [
                        {
                            "name": "searchPers",
                            "description": "Search the People",
                            "title": "People"
                        }
                    ]
                }
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "{{ appurl }}"
    ]
}

0 个答案:

没有答案