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”的注册处理程序所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)