gpt4 book ai didi

ios - Google Plus 共享显示无效地址错误 ios

转载 作者:行者123 更新时间:2023-11-28 09:28:18 25 4
gpt4 key购买 nike

我已按照以下链接中显示的所有步骤操作:- Google plus sharing link to integrate

我已尝试使用以下代码设置登录详细信息:-

        var signIn = GPPSignIn.sharedInstance();
signIn.shouldFetchGooglePlusUser = true;
signIn.clientID = kClientId;
signIn.scopes = NSArray(array: ["https://www.googleapis.com/auth/plus.me"]) as [AnyObject]
signIn.delegate = self
signIn.trySilentAuthentication()

我在 appdelegate 中尝试了以下代码:-

        func application(application: UIApplication,
openURL url: NSURL,
sourceApplication: String?,
annotation: AnyObject?) -> Bool
{
return GPPURLHandler.handleURL(url, sourceApplication: sourceApplication, annotation: annotation)
}


我已将 URL schemes 和 URL Identifiers 设置为我的 bundle Id,它与 google developer console 中提到的 Bundle ID 相同。

但我收到屏幕截图中显示的错误:- enter image description here

请帮我解决这个错误。我已经尝试了所有可能的方法。提前致谢。

最佳答案

代替:

signIn.scopes = NSArray(array: ["https://www.googleapis.com/auth/plus.me"]) as [AnyObject]

尝试 (as in the link) :

signIn.scopes = NSArray(array: ["profile"]) as [AnyObject]

希望对您有所帮助!

关于ios - Google Plus 共享显示无效地址错误 ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30930957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com