简体   繁体   English

SharePoint 页面未加载到静态应用程序的个人选项卡中(MS Teams 桌面客户端)

[英]SharePoint page not loading in personal tab of static app (MS Teams desktop client)

When adding a SharePoint page as a static tab in my custom personal app , the added SharePoint page is not loaded in the MS Teams desktop client, but works as expected in the web client.在我的自定义个人应用程序中将 SharePoint 页面添加为静态选项卡时,添加的 SharePoint 页面未在 MS Teams桌面客户端中加载,但在Web客户端中按预期工作。

Also , when switching to Developer Preview the tab starts to work.此外,当切换到 Developer Preview 时,该选项卡开始工作。 Even when switching out of Developer Preview the web page still loads as expected.即使退出Developer Preview,网页仍会按预期加载。

Steps to Reproduce重现步骤

  • Create a page in SharePoint online在 SharePoint Online 中创建页面
  • Create a new MS Teams app (eg in App Studio's Manifest editor)创建一个新的 MS Teams 应用程序(例如在 App Studio 的清单编辑器中)
  • Add a new Personal tab, linking to the SharePoint page添加新的个人选项卡,链接到 SharePoint 页面
  • Install the MS Teams app (eg with App Studio's Test and Distribute)安装 MS Teams 应用程序(例如,使用 App Studio 的测试和分发)
  • Open the MS Teams app --> The SharePoint page is not loaded (nothing is shown, just a blank screen)打开 MS Teams 应用程序 --> SharePoint 页面未加载(未显示任何内容,只是一个空白屏幕)

  • Switch to developer preview (& sign in if needed)切换到开发者预览版(如果需要,请登录)

  • Open the MS Teams app --> The SharePoint page is loaded correctly打开 MS Teams 应用程序 --> SharePoint 页面已正确加载

  • Switch out of developer preview (& sign in if needed)退出开发者预览版(如果需要,请登录)

  • Open the MS Teams app --> The SharePoint page is still loaded correctly打开 MS Teams 应用程序 --> SharePoint 页面仍然正确加载

PS: it seems initially there is a redirect happening to /_layouts/15/Authenticate.aspx, which redirects to the MS login page. PS:似乎最初有一个重定向发生在 /_layouts/15/Authenticate.aspx,它重定向到 MS 登录页面。 However, this redirect is not happening when the switch to or from developer preview has occured.但是,当切换到开发者预览版或从开发者预览版切换时,不会发生此重定向。 So, it looks like initially MS Teams does not pass authenticated correctly?那么,看起来最初 MS Teams 没有正确通过身份验证?

https://github.com/SharePoint/sp-dev-docs/issues/4512 https://github.com/SharePoint/sp-dev-docs/issues/4512

Could you please try adding following in your App Manifest as workaround and let us know if you are facing any issue?您能否尝试在您的 App Manifest 中添加以下内容作为解决方法,如果您遇到任何问题,请告诉我们?

"staticTabs": [
    {
      "entityId": "TestTabId",
      "name": "Test Tab",
      "contentUrl": "https://microsoft.sharepoint.com/teams/MyTestSite/_layouts/15/teamslogon.aspx?spfx=true&dest=/teams/MyTestSite/SitePages/Test.aspx",
      "scopes": ["personal"],
      "websiteUrl": "https://fullwebsite.website.com/about"
    }
  ],
  "validDomains": [
    "*.login.microsoftonline.com",
    "microsoft.sharepoint.com",
    "microsoft.sharepoint-df.com",
    "spoppe-a.akamaihd.net",
    "spoprod-a.akamaihd.net",
    "resourceseng.blob.core.windows.net",
    "msft.spoppe.com"
  ],
  "webApplicationInfo": {
    "resource": "https://microsoft.sharepoint.com",
    "id": "00000003-0000-0ff1-ce00-000000000000"
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Sharepoint API 用于上传文件并复制到 Ms 团队 - Sharepoint API to Upload Files and copy to Ms teams 从 Teams 选项卡调用 SharePoint REST API - Call SharePoint REST API from Teams Tab 从使用 Teams 工具包创建的 Teams 选项卡访问 Sharepoint 列表 - Access Sharepoint List from Teams Tab created using Teams toolkit 个人视图上的“个性化此页面”更改未保存-共享点 - “Personalize this Page” changes on Personal View not saving - sharepoint 我可以将 SharePoint 在线库添加到 MS Teams 频道,但是将 Teams 库添加到 SharePoint 呢? - I can add a SharePoint Online library to a MS Teams channel, but what about Teams library to SharePoint? 如何获得代表 SharePoint 在 Teams 应用程序中的访问权限 - How to get on behalf of SharePoint access in Teams app 静态HTML页面作为Sharepoint页面 - Static HTML Page as Sharepoint page Microsoft Teams 将文件选项卡与自定义应用程序选项卡集成 - Microsoft Teams Integrate Files tab with Custom App tab 在 SharePoint 2013 页面中加载 gif - Loading gif in a SharePoint 2013 page Microsoft Teams React App 防止来自 SharePoint Online 的样式覆盖 - Microsoft Teams React App prevent style overwriting from SharePoint Online
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM