简体   繁体   English

应用程序调用 displayReplyAllForm 方法时的弹出窗口阻止程序处理

[英]Popup blocker handling when app calls displayReplyAllForm method

Would you please help me to resolve "Blocked Pop-up Window" problem ?你能帮我解决“阻止弹出窗口”的问题吗?

When I submit our app to AppSource, we get following failure message from partner center.当我将我们的应用程序提交到 AppSource 时,我们从合作伙伴中心收到以下失败消息。

Customer Control 1100.5.4.2 Blocked Pop-Up Window Pop-up windows triggered by user interaction must not be blocked by browser pop-up blockers on their default settings.客户控制 1100.5.4.2 阻止的弹出窗口 由用户交互触发的弹出窗口不得被浏览器弹出窗口阻止程序以默认设置阻止。 A pop-up blocked appears in the browsers when we click on the "insert" button within your add-in.当我们单击加载项中的“插入”按钮时,浏览器中会出现一个被阻止的弹出窗口。 Please update the offer to correct pop-up window behavior and re-submit your offer.请更新报价以更正弹出窗口的行为并重新提交您的报价。

This is happened when our app calls displayReplyAllForm by user interaction.当我们的应用程序通过用户交互调用displayReplyAllForm时会发生这种情况。 How can I resolve this problem technically ?我怎样才能从技术上解决这个问题?

Because of following investigation, IMO, Office team should handle this problem.由于后续调查,IMO、Office 团队应处理此问题。

  1. In general, I should call window.open directly from user-interaction for avoiding popup blocker .一般来说,我应该直接从用户交互中调用window.open以避免弹出窗口阻止程序
  2. For detecting and handle popup blocker, I can utilize returned value from window.open .为了检测和处理弹出窗口阻止程序,我可以利用window.open返回值

But, I can't do this because window.open or something popup logic is wrapped in displayReplyAllForm .但是,我不能这样做,因为window.open或某些弹出逻辑包含在displayReplyAllForm So, I think it should be handled by Office team.所以,我认为应该由Office团队来处理。

My suggestion is that Office team provide promptBeforeOpen option for displayReplyAllForm .我的建议是,Office团队提供promptBeforeOpen的选项displayReplyAllForm I can avoid popup blocker with promptBeforeOpen when I use Dialog API, and want to use it in other functions provided by Office.js.当我使用 Dialog API 时,我可以通过promptBeforeOpen避免弹出窗口阻止promptBeforeOpen ,并希望在 Office.js 提供的其他功能中使用它。

Microsoft product team has repro the issue and has added this to their backlog. Microsoft 产品团队已重现该问题并将其添加到他们的待办事项中。 Let's wait they'll fix the problem and we can avoid bad UX in the future.让我们等待他们解决问题,我们可以在未来避免糟糕的用户体验。

https://github.com/OfficeDev/office-js/issues/1377#issuecomment-690049886 https://github.com/OfficeDev/office-js/issues/1377#issuecomment-690049886

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

相关问题 Microsoft Teams 应用在发布时通过认证步骤需要多长时间? - How much time does it take to a Microsoft Teams app get passes the certification step when publishing? 加载项在 Outlook Web 应用程序在经典模式下在 Safari 中加载时不起作用 - Add-in not working in Outlook Web App in classic mode when loaded in Safari Microsoft Office商店应用已批准但不可见 - Microsoft Office store app approved but not visible 微软 App Store 提交无权访问 Email 账号进行测试 - Microsoft App Store Submission does not have access to Email Account to test 由于缺少版本号,Azure AD Web应用程序的AppSource验证失败 - AppSource validation failing for Azure AD web app because of missing version number 在初始 AppSource 发布后,我们何时应该重新认证 Outlook 加载项 - When should we re-certify Outlook Add-in after initial AppSource publish Outlook加载项错误:验证您的加载项时,我们会收到一条错误消息,无法加载您的加载项 - Outlook add-in error: When authenticating your add-in, we receive an error message and are unable to load your add-in App ID 42949683061的验证问题 - Validation question for App ID 42949683061 SharePoint加载项可以与Dynamics应用程序一起使用吗? - SharePoint add-in to works in conjunction with Dynamics app? 应用提交-帮助/支持链接要求 - App Submission - Help/Support Link Requirement
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM