如何避免“想要打开” iOS 9.0中由openURL触发的对话框 [英] How to avoid "wants to open" dialog triggered by openURL in iOS 9.0

查看:215
本文介绍了如何避免“想要打开” iOS 9.0中由openURL触发的对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用openURL从 App A 打开应用B ,然后我收到此警告对话框应用A 想要打开应用B ,有两个按钮,打开和取消。

I use openURL to open app B from App A, and I get this alert dialog "App A wants to open App B", with two buttons, "Open" and "Cancel".

如果我按取消,应用B 将无法打开,对话框将再次出现。

If I press "Cancel", app B won't open and dialog will appear again.

如果我按打开,应用程序B 将打开,对话框将不会出现再次。

If I press "Open", app B will open and dialog won't appear again.

我想以某种方式让它看起来不像。我想知道是否有一个键应该添加到 app A 的info.plist中,以便在执行openURL到 app B 时跳过对话步骤。

I would like to somehow to make it not appear to begin with. I am wondering if there is a key I should add to app A's info.plist in order to skip the dialog step when doing openURL to app B.

任何想法?

更新:

检查后,我无法找到解决问题的方法。看起来这个对话框无论如何都会出现。我希望Apple会添加自动处理它的选项,好像两个应用程序都是我的,逻辑上,不应该有任何对话框来确认它们之间的切换......

After checking, I could not come up with a solution for my problem. It looks like this dialog will appear regardless. I hope Apple will add the option to handle it automatically as if both apps are mine, logically, there should not be any dialog to confirm switching between them...

推荐答案

检查了几个小时后,我无法找到解决问题的方法。看起来这个对话框无论如何都会出现......我希望Apple会在应用程序的info.plist中添加选项来处理它,好像两个应用程序都是我的,逻辑上,不应该有任何对话框来确认它们之间的切换。 。

After checking for hours, I could not come up with a solution for my problem. It looks like this dialog will appear regardless anything... I hope Apple will add the option to handle it in the app's info.plist as if both apps are mine, logically, there should not be any dialog to confirm switching between them...

这篇关于如何避免“想要打开” iOS 9.0中由openURL触发的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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