iOS应用之间跳转 报错:"This app is not allowed to query for scheme ***"
来源:互联网 发布:java中getname 编辑:程序博客网 时间:2024/05/17 08:18
Mark:
关于应用之间跳转,核心代码是:
[[UIApplication sharedApplication] openURL:url]
但是在试图打开这个url之前,应该先判断一下设备上是否安装了该url对应的APP,如果存在,打开APP,如果不存在,则做出相应处理:
BOOL isExist = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"iosamap://"]]
Question:
问题是 这个方法出现的如下错误:
-canOpenURL: failed for URL: "iosamap://" - error: "This app is not allowed to query for scheme iosamap"
根据错误日志,我们且翻译成:当前APP不被允许调用iosamap这个scheme
Solution:
所以我们引入 白名单 的概念,在项目的info.plist文件中,添加scheme白名单:
好了,问题解决
0 0
- iOS应用之间跳转 报错:"This app is not allowed to query for scheme ***"
- iOS社会化分享报错:- error: "This app is not allowed to query for scheme mqq"
- "This app is not allowed to query for scheme ***"
- [iOS]canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- 【iOS开发】-canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- 调用app出现"This app is not allowed to query for scheme..."
- -canOpenURL: failed for URL: "wechat://" - error: "This app is not allowed to query for scheme wech
- -canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- ios 9.1之后 微信第三方登陆“This app is not allowed to query for scheme weixin”问题
- iOS 9 failed for URL: "XXX://@" - error: "This app is not allowed to query for scheme XXX" iOS 从APP里
- Ios9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- -canOpenURL: failed for URL: "kindle://home" - error: "This app is not allowed to query for scheme k
- iOS9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"key>
- iOS9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- Ios9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- Ios9.0 canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- iOS分享授权问题:-canOpenURL: failed ..."This app is not allowed to query for sscheme xx
- 【LeetCode】Add Two Numbers Go语言实现
- 常见hash算法的原理
- mysql之explain
- 逻辑卷管理命令示例
- 安卓自定义View进阶-Canvas画布操作整理
- iOS应用之间跳转 报错:"This app is not allowed to query for scheme ***"
- HTML DOM学习心得(附:开心网查找空车位函数)
- e2e test 端到端的测试
- 光标(tkinter,Python3.x)
- springmvc
- 测一测跟男友差几岁你最幸福?
- Android设置控件透明度
- ios导航栏操作
- iOS错误:解决用Xcode打开iPhone工程变成了My Mac的问题