UI.displayDialogAsync() 在 Outlook 2016/Windows 10 中不起作用 [英] UI.displayDialogAsync() does not work in Outlook 2016 / Windows 10

查看:75
本文介绍了UI.displayDialogAsync() 在 Outlook 2016/Windows 10 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们构建了一个 Outlook 插件,并正在不同平台上对其进行测试.

We build an Outloook Addin and are testing it across different platforms.

它适用于所有浏览器(IE 11、Edge、Chrome 和 Safari),但不适用于 Windows 10 上的 Outlook 2016.我们根本原因是它,看起来问题是 Office JS API UI.displayDialogAsync() .它不会在 Outlook 16 中打开对话框,插件只是挂在那里,以下进度消息永远旋转,

It works on all the browsers (IE 11, Edge, Chrome and Safari), but not in the Outlook 2016 on Windows 10. We root cause it, looks like the problem is Office JS API UI.displayDialogAsync() . It does not open a dialog in Outlook 16 and the addin just hangs in there with the following progress message spinning forever,

[您的插件] 正在处理您的 [请求]

[Your Addin] is working onr your [Request]

我们在互联网上找到的最接近的东西是这个 Stackflow 帖子,其中答案说支持此 API 的最旧 Outlook 版本是 16.0.6741.0000.我们使用的是16.0.9226.2114,所以满足要求.

The closest thing we found on the Internet is this Stackflow post in which the answer says the oldest Outlook build that supports this API is 16.0.6741.0000. We are using 16.0.9226.2114, so we meet the requirement.

以下是我们在测试中使用的 OS/Outlook 和 Office JS 版本:

Here are versions of OS/Outlook and Office JS we use in the test:

  1. 操作系统:Window 10 Home,版本 10.0.16299,x64
  2. 展望:16.0.9226.2114,32 位(版本 1804)
  3. Office JS:1.1.5-release-next.1(我们从 GitHub 并将其托管在我们的服务器上)
  1. OS: Window 10 Home, Version 10.0.16299, x64
  2. Outlook: 16.0.9226.2114, 32bit (Version 1804)
  3. Office JS: 1.1.5-release-next.1 (We download the exact package from GitHub and host it on our server)

想知道 Outlook 2016 上是否存在此 API 的任何已知问题?需要一些帮助,谢谢!

Wonder is there any known issue of this API on Outlook 2016? Need some help here, thanks!

我们也一直在尝试使用 F12 开发人员工具.但是我们的插件无法显示在选择器页面中,无论我们在之前还是之后启动选择器我们点击我们的插件.我们已经在几台 Windows 10 机器上尝试过这个,但它们都不起作用.任何我们可能会错过的建议?

We have also been trying to debug Outlook 2016 using F12 developer tools . But our addin cannot show up in the chooser page, no matter we launch the chooser before or after we click on our addin. We have tried this on several windows 10 machines, but none of them work. Any suggestions that what we could possible miss here?

推荐答案

在我看来,您遇到了与我类似的问题.对我来说,在清单中添加远程域解决了这个问题.查找并更新以下部分:

Seems to me that you had a similar issue to mine. For me adding the remote domain in the manifest resolved the case. Find and update the following section:

<AppDomains>
  <AppDomain>https://your.domain.com/</AppDomain>
  <AppDomain>https://auth.com/</AppDomain>
</AppDomains>

代理 HTML 有效,因为它从您的域加载,并且仍然是可行的解决方案.

Proxy HTML works cause it's loading from your domain and still is viable solution.

这篇关于UI.displayDialogAsync() 在 Outlook 2016/Windows 10 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆