LSApplicationQueriesSchemes 在打开应用时行为不一致

问题描述

我从 gmail 和 twitter 添加了 LSApplicationQueriesSchemes。但是对于这两个应用程序,我都在控制台 This app is not allowed to query for scheme xxx 中收到错误消息。对于 twitter,该应用程序仍会打开。我还有一个指向 github 的链接,我没有为其定义 LSApplicationQueriesSchemes 并且它打开没有问题。但仅对于 Gmail 我收到错误 This app is not allowed to query for scheme googlegmail

所以我从 LSApplicationQueriesSchemes 中删除了 googlegmail 的条目,然后应用程序开始打开。奇怪的是在 gmail 使用列出的 LSApplicationQueriesSchemes 打开之前。而今天它突然停止了开放。为什么 LSApplicationQueriesSchemes 如此不一致?

LSApplicationQueriesSchemes

我正在使用

打开应用程序
UIApplication.shared.open(url,options: [:],completionHandler: nil)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...