首页 > 解决方案 > 微软团队配置选项卡在浏览器中呈现,但不是原生 macOS 应用程序

问题描述

我正在开发 Microsoft Teams 选项卡应用程序。在他们的网络客户端中安装我的应用程序时,我能够成功加载我的选项卡配置页面。在 macOS 客户端中重复此工作流会失败,并且不会呈现任何内容。启用电子日志记录后,我看到以下输出:

[2998:0828/101101.014965:INFO:CONSOLE(113)] "Controller 'kbList' or 'kbSelect', required by directive 'kbItem', can't be found!", source: https://statics.teams.microsoft.com/hashedjs/0-angular-jquery.min-dafbbdf5.js (113) [2998:0828/101101.151096:INFO:CONSOLE(76)] "Unrecognized Content-Security-Policy directive 'prefetch-src'. ", source: https://statics.teams.microsoft.com/hashedjs/0-angular-jquery.min-dafbbdf5.js (76) [2998:0828/101101.151309:INFO:CONSOLE(76)] "Unrecognized Content-Security-Policy directive 'prefetch-src'. ", source: https://statics.teams.microsoft.com/hashedjs/0-angular-jquery.min-dafbbdf5.js (76) [2998:0828/101101.223595:INFO:CONSOLE(76)] "Uncaught (in promise) undefined", source: https://statics.teams.microsoft.com/hashedjs/0-angular-jquery.min-dafbbdf5.js (76) [2998:0828/101101.223676:INFO:CONSOLE(76)] "Uncaught (in promise) undefined", source: https://statics.teams.microsoft.com/hashedjs/0-angular-jquery.min-dafbbdf5.js (76) [2998:0828/101101.400452:INFO:CONSOLE(0)] "Application Cache Checking event", source: https://teams.microsoft.com/_#/conversations/General?threadId=19:c63e6abc4e4b4474a991c921adf0ce77@thread.skype&ctx=channel (0) [2998:0828/101101.469231:INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://teams.microsoft.com/_#/conversations/General?threadId=19:c63e6abc4e4b4474a991c921adf0ce77@thread.skype&ctx=channel (0)

看起来我的 rails 应用程序实际上从未收到对 iframed 内容的请求,因为没有记录任何内容。

标签: microsoft-teams

解决方案


我在本地运行我的应用程序,但没有意识到本机客户端需要一个外部可访问的 URI。使用 ngrok 解决了我的问题

https://docs.microsoft.com/en-us/microsoftteams/platform/resources/general/debug#locally-hosted


推荐阅读