• 集成shareSDK 过程中 报错“This app is not allowed to query for scheme sinaweibosso”


    ②如果你的输出信息是 xxxx - error: "This app is not allowed to query for scheme xxxx"

    (在这里因为我的 App 集成了分享到QQ、微信、微博的功能,xxxx部分我看到了 mqq、wechat、sinaweibosso 等多条信息)

    去 Info.plist 里面建立一个叫 LSApplicationQueriesSchemes 的 Array,把你在xxxx部分看到的词汇一个一个填进去,直至控制台没有任何相关输出即可。

    ③关于其他通过 WebView 访问 http 网址引发的控制台报错信息


    Info.plist 中设置 ATS
    <key>NSAppTransportSecurity</key>
    <dict>
    <!--Include to allow all connections (DANGER)-->
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    </dict>

    如之前所说,Apple 希望我们访问相对安全的 HTTPS,所以在你需要访问 HTTP 时,
    虽 Apple 不建议,但可通过在 Info.plist 中声明如上图所示的内容,倒退回不安全的网络请求,这样依然能让 App 访问指定 HTTP,甚至任意的 HTTP。



    文/KyXu大魔王(简书作者)
    原文链接:http://www.jianshu.com/p/e38a609f786e
    著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
  • 相关阅读:
    UVA 10604 Chemical Reaction
    UVA 10635 Prince and Princess
    UVA 607 Scheduling Lectures
    Create Maximo Report
    安裝及配置Maximo Report步驟
    check blocking
    數據據類型縮寫
    .net
    poj3522
    poj1286
  • 原文地址:https://www.cnblogs.com/yecong/p/6030385.html
Copyright © 2020-2023  润新知