[英]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 团队应处理此问题。
window.open
directly from user-interaction for avoiding popup blocker .一般来说,我应该直接从用户交互中调用window.open
以避免弹出窗口阻止程序。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.