【问题标题】:Integrate Linkedin from iphone app? shows "-canOpenURL: failed for URL: linkedin://-error: This app is not allowed to query for scheme linkedin" [duplicate]从 iPhone 应用程序集成 Linkedin?显示“-canOpenURL:URL 失败:linkedin://-error:此应用不允许查询方案linkedin”[重复]
【发布时间】:2017-03-15 06:08:29
【问题描述】:

使用的 Pod 文件:

  1. https://github.com/tonyli508/LinkedinSwift

在这里创建了新应用:https://developer.linkedin.com/docs/ios-sdk

【问题讨论】:

    标签: ios iphone swift3 swift3.0.2


    【解决方案1】:

    在 info.plist 中,添加 App Transport Security 设置并允许任意加载,这是一个布尔值。还在那里添加“LSApplicationQueriesSchemes”。

    点击后, 启用此代码

    let url  = NSURL(string: "linkedin://");
                        UIApplication.sharedApplication().openURL(url!)
    

    【讨论】:

    • 我在 info.plist 中添加了 LIAppId、LSApplicationQueriesSchemes、NSAppTransportSecurity、NSAllowsArbitraryLoads、NSExceptionDomains 和 NSIncludesSubdomains。仍然无法正常工作
    猜你喜欢
    • 2023-01-13
    • 1970-01-01
    • 1970-01-01
    • 2015-12-20
    • 1970-01-01
    • 2018-11-10
    • 2019-01-28
    • 2019-06-27
    相关资源
    最近更新 更多