gpt4 book ai didi

ios - Google 使用服务器登录 iOS

转载 作者:行者123 更新时间:2023-11-28 23:39:16 27 4
gpt4 key购买 nike

我正在将 Google Sign In 添加到我的 iOS 应用中。在 the guide告诉你创建一个 iOS Oauth id 但是,在 Android guide ,他们还告诉我们,如果您使用后端服务器进行身份验证,则需要使用 Web Oauth id 而不是 Android id。

所以我的问题是,如果我在我的 iOS 应用程序中使用服务器,我需要使用 Web Oauth id 还是 iOS id?

谢谢

最佳答案

问题:我在我的 iOS 应用程序中使用服务器,我需要使用 Web Oauth id 还是 iOS id?

You have to use iOS Oauth id for Google Sign In because From iOS End without valid iOS Oauth id you can not use Google SDK. Also,bundle identifiercame into picture if you are talking aboutSign In` with Google by using iOS App.

一言以蔽之,您不能在 iOS 应用程序中使用 Web Oauth id。

更新:

iOS、Android 和服务器是完全不同的,因为对于 iOS 我们必须添加 .plist 文件,对于 Android .json 文件到项目等等。

您必须使用如下客户端 ID 来使用 Google SDK。

GIDSignIn.sharedInstance().clientID = Client_ID

谢谢。

关于ios - Google 使用服务器登录 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54021631/

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