[WIndows 8.1] C#Windows应用商店应用(Windows 8.1),如何隐藏“您是不是要在应用之间切换?”对话框? [英] [WIndows 8.1]C# Windows Store App (windows 8.1), How to hide the 'Did you mean to switch between Apps?' dialog?

查看:89
本文介绍了[WIndows 8.1] C#Windows应用商店应用(Windows 8.1),如何隐藏“您是不是要在应用之间切换?”对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们用C#开发的widows商店应用程序中,我们在单独的页面中在WebView中显示HTML内容。

In our widows store app developed in C#, we are displaying HTML content in WebView in a separate page.

在HTML内容的按钮元素中,我们有一些自定义用户定义的URI方案,如下所示:

< a href =" customAction: // actionButton / InvokePage ID = 13212>

In button element in HTML content, we have some custom user defined URI scheme as below:
<a href="customAction://actionButton/InvokePage?id=13212>

通过"window.external.notify"将href url通知给app。当应用程序通过上述URL通知时,应用程序将执行一些服务器操作。

the href url is notified to app via "window.external.notify". When the app is notified with the above url, app will do some server action.

当我们单击该按钮时, '您是否要在应用程序之间切换? '对话框由Windows显示。有了这个,我们无法进入生产。

When we click that button, a 'Did you mean to switch between Apps?' dialog is displayed by Windows.With this, we cannot go to production.

所以我们需要避免显示这个警告。

So we need to avoid displaying this alert.

我们怎么做?

谢谢。

推荐答案

不,这是不可能的。此行为是设计使然。用户应该知道应用程序出于安全原因正在做什么。

No, this is impossible. This behavior is by design. Users should be aware of what the app is doing for security reason.

祝你好运,

Roy


这篇关于[WIndows 8.1] C#Windows应用商店应用(Windows 8.1),如何隐藏“您是不是要在应用之间切换?”对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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