microsoft-teams - 微软团队配置选项卡在浏览器中呈现,但不是原生 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 内容的请求,因为没有记录任何内容。
解决方案
我在本地运行我的应用程序,但没有意识到本机客户端需要一个外部可访问的 URI。使用 ngrok 解决了我的问题
https://docs.microsoft.com/en-us/microsoftteams/platform/resources/general/debug#locally-hosted
推荐阅读
- html - 仅使用 iOS API 从 html 中提取 JSON 字符串
- ios - iOS RxSwift如何检查Result == .success?
- sql - SQL Server:将“类型”添加到表中的每一列
- android - 如何将图像存储到 ORMLite
- c# - 将csv上传到sql server时,“给定的ColumnMapping与源或目标中的任何列都不匹配”
- ruby-on-rails - scss 文件中的 ENV 变量
- android - 如何从 android chrome 发起 sip 软电话呼叫
- css - 如何在不使用 Materialise Css 的情况下从头开始创建 Materialise Css 输入设计和功能?
- ajax - Laravel ajax 存储请求错误消息,数据追加到视图
- android - 致命例外:主要(