ios – 在使用GIDSignIn进行唱歌时,“没有URL方案com-google-gidconsent”的注册处理程序

ios – 在使用GIDSignIn进行唱歌时,“没有URL方案com-google-gidconsent”的注册处理程序,第1张

概述我已经手动整合谷歌登录sdk(不是与可可),它建立好,但是当我运行项目我总是得到这个错误,登录后: 2015-09-07 15:44:14.071 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com-google-gidconsent-google20 我已经手动整合谷歌登录sdk(不是与可可),它建立好,但是当我运行项目我总是得到这个错误,登录后:
2015-09-07 15:44:14.071 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com-Google-gIDconsent-Google2015-09-07 15:44:14.071 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com-Google-gIDconsent-youtube2015-09-07 15:44:14.072 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com-Google-gIDconsent2015-09-07 15:44:14.072 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com.Google.gppconsent.2.4.12015-09-07 15:44:14.072 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com.Google.gppconsent.2.4.0

这是我如何使用sdk.

首先我按照https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift的所有步骤.

码:
AppDelegate.swift

func application(application: UIApplication,dIDFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {      // Google    // Initialize sign in    GIDSignIn.sharedInstance().clIEntID = "<clIEnt ID>"    GIDSignIn.sharedInstance().delegate = self    return true}func signIn(signIn: GIDSignIn!,dIDSignInForUser user: GIDGoogleUser!,withError error: NSError!) {    if error == nil {        let userID = user.userID        let IDToken = user.authentication.IDToken        let name = user.profile.name        let email = user.profile.email        print(userID,IDToken,name,email)    } else {        print(error.localizedDescription)    }}func signIn(signIn: GIDSignIn!,dIDdisconnectWithUser user: GIDGoogleUser!,withError error: NSError!) {}

VIEwController.swift

overrIDe func vIEwDIDLoad() {        super.vIEwDIDLoad()        // Google plus        //GIDSignIn.sharedInstance().clIEntID = clIEntID        GIDSignIn.sharedInstance().uIDelegate = self        GIDSignIn.sharedInstance().signIn()}

可能是什么问题?我使用SDK版本2.2.0

解决方法 您的实现没有问题.所有这些警告意味着每个URL方案引用的应用程序都未安装在设备上.

如果你正在模拟器上测试,那么你会一直遇到这些错误.但是,如果您在设备上进行测试,则可以验证如果安装了相应的应用程序,错误将会消失.

例如,如果您的设备上有YouTube应用,您将看不到该行:

2015-09-07 15:44:14.071 Contacts++[82438:4826277] LaunchServices: ERROR: There is no registered handler for URL scheme com-Google-gIDconsent-youtube
总结

以上是内存溢出为你收集整理的ios – 在使用GIDSignIn进行唱歌时,“没有URL方案com-google-gidconsent”的注册处理程序全部内容,希望文章能够帮你解决ios – 在使用GIDSignIn进行唱歌时,“没有URL方案com-google-gidconsent”的注册处理程序所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1112637.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存