【问题标题】:MS Teams app to display intranet works on mobile client but not on WindowsMS Teams 应用程序在移动客户端上显示 Intranet 作品,但在 Windows 上不显示
【发布时间】:2020-03-02 10:34:02
【问题描述】:

我制作了一个非常简单的 Teams 应用程序,旨在在团队内的选项卡上显示我们的内部公司 Intranet。

这适用于团队的移动版本,但不适用于 Windows 客户端。 此外,使用 Web 客户端时,它会引发错误,指出“此内容无法在框架中显示”。

清单如下...

 {
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0.0",
"id": "72545647f-dd7c-4205-8749-7351561561f2",
"packageName": "<companyname>.teams.intranet.app",
"developer": {
    "name": "John",
    "websiteUrl": "https://www.<WEBSITE_URL>.uk",
    "privacyUrl": "https://randomdomain.co.uk/ps",
    "termsOfUseUrl": "https://randomdomain.co.uk/tou"
},
"icons": {
    "color": "color.png",
    "outline": "outline.png"
},
"name": {
    "short": "Intranet",
    "full": "Intranet"
},
"description": {
    "short": "Bring the functionality of our Intranet into Teams",
    "full": "The <COMPANYNAME> Intranet app will introduce an Intranet tab into teams"
},
"accentColor": "#FFFFFF",
"configurableTabs": [
    {
        "configurationUrl": "https://intranet.<companyname>.uk",
        "canUpdateConfiguration": false,
        "scopes": [
            "team"
        ],
        "supportedSharePointHosts": [
            "sharePointFullPage"
        ]
    }
],
"staticTabs": [
    {
        "entityId": "intranet",
        "name": "intranet",
        "contentUrl": "https://intranet.<companyname>.uk",
        "websiteUrl": "https://intranet.<companyname>.uk",
        "scopes": [
        "personal"
        ]
    }
],
"permissions": [
    "identity",
    "messageTeamMembers"
],
"validDomains": [
    "intranet.<companyname>.uk"
]

}

我错过了什么吗?

任何帮助都非常感谢:)

【问题讨论】:

    标签: microsoft-teams manifest.json


    【解决方案1】:

    您的标签需要允许自己被 iframe。

    请通过此链接查看how tabs work

    【讨论】:

    • 我不确定为什么这被否决了,因为我认为它是正确的 - 默认情况下,并非每个网页都会简单地作为 Teams 中的选项卡“工作”。例如,@Gousia 的链接声明标签页必须引用 Teams 库,并调用“microsoftTeams.initialize()”,其中声明“这样做会告诉 Teams 显示您的页面”
    • 因此在这方面取得了一些进展 - 该应用程序将显示诸如 skynews.com 之类的网站,但不会显示来自我公司基于共享点的 Intranet 网站的内容。我相信某处有一些设置允许内容显示在 sharepoint 内的 iframe 中,但找不到这个 - 以前有人看过吗?
    • @bhargav 你看到了吗?
    猜你喜欢
    • 2016-04-20
    • 1970-01-01
    • 2017-03-17
    • 2022-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多