从 Teams 桌面客户端应用选项卡打开弹出窗口(例如本机浏览器)
Open a popup (e.g. native browser) from a Teams desktop client app tab
有什么方法可以从 Teams 应用选项卡(桌面客户端)弹出浏览器 window?
我遇到了以下 link,从我对回复的解释来看,这似乎是不可能的。
引自link供参考:
Unfortunately it’s not possible to use window.open in Teams tabs. Because we block opening of new windows to arbitrary sites within our Teams Desktop Client (for security reasons) you need to always use microsoftTeams.authentication.authenticate (if you want a popup window) or microsoftTeams.tasks.startTask (if you want an iframe-based dialog) to open a secondary app view.
我不太清楚上面的 microsoftTeams.authentication.authenticate 参考是什么意思。
或者,如果不是浏览器 window,我们可以尝试打开设备上安装的另一个应用程序(例如 Excel)吗?
提前致谢!
您只是想完全启动一个新的浏览器吗?如果是这样,具有目标属性(例如 ...)的常规锚标记将正常工作(我自己在选项卡中执行此操作,并且没有问题)。
您可以尝试使用 TaskModule 在 Teams 选项卡的弹出窗口中打开自定义 HTML/ Javascript 或基于 iframe 的小部件。
microsoftTeams.authentication.authenticate() 将允许您根据您的选项卡对用户进行身份验证。您可以找到此 here.
的文档
有什么方法可以从 Teams 应用选项卡(桌面客户端)弹出浏览器 window?
我遇到了以下 link,从我对回复的解释来看,这似乎是不可能的。
引自link供参考:
Unfortunately it’s not possible to use window.open in Teams tabs. Because we block opening of new windows to arbitrary sites within our Teams Desktop Client (for security reasons) you need to always use microsoftTeams.authentication.authenticate (if you want a popup window) or microsoftTeams.tasks.startTask (if you want an iframe-based dialog) to open a secondary app view.
我不太清楚上面的 microsoftTeams.authentication.authenticate 参考是什么意思。
或者,如果不是浏览器 window,我们可以尝试打开设备上安装的另一个应用程序(例如 Excel)吗?
提前致谢!
您只是想完全启动一个新的浏览器吗?如果是这样,具有目标属性(例如 ...)的常规锚标记将正常工作(我自己在选项卡中执行此操作,并且没有问题)。
您可以尝试使用 TaskModule 在 Teams 选项卡的弹出窗口中打开自定义 HTML/ Javascript 或基于 iframe 的小部件。
microsoftTeams.authentication.authenticate() 将允许您根据您的选项卡对用户进行身份验证。您可以找到此 here.
的文档