简体   繁体   English

Google驱动器,Firebase相同iOS应用程序的不同客户端ID

[英]Google drive, Firebase different client ids for same iOS app

First, I integrated Google Drive in my iOS native app and used GTMOAuth2 for authorization login, with a client id.首先,我将 Google Drive 集成到我的 iOS 本机应用程序中,并使用 GTMOAuth2 进行授权登录,并使用客户端 ID。

Then, I am now trying to integrate firebase authentication, and I got a new client id in GoogleService-Info.plist.然后,我现在正在尝试集成 firebase 身份验证,并且我在 GoogleService-Info.plist 中获得了一个新的客户端 ID。

When I used firebase authorization and then got the data in google drive, I got an Invalid Credentials error.当我使用 firebase 授权然后在 google drive 中获取数据时,出现无效凭据错误。

How can I use firebase authorization to get the data in google drive?如何使用 firebase 授权获取 google drive 中的数据? Why does the same APP have two client ids, can I modify the client id in GoogleService-Info.plist?为什么同一个APP有两个client id,我可以修改GoogleService-Info.plist中的client id吗?

I have passed through the same.我也经历过。 After Enable GglDrive api,In Credential, Don't create new credential you'll find in below list(auto created by google services),You'll find one id with same ClientId & ReturnUrl like in Google.plist.启用 GglDrive api 后,在 Credential 中,不要创建新的凭证,您会在下面的列表中找到(由 google 服务自动创建),您会发现一个与 Google.plist 中具有相同 ClientId 和 ReturnUrl 的 ID。 Use to download that file and use.用于下载该文件并使用。 You'll not face this "invalid_client" error further.您将不会再遇到此“invalid_client”错误。 Check image below I have shown with arrow:检查下面我用箭头显示的图像:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 对于 iOS,我是否必须将同一个应用程序两次上传到 Firebase? - Do I have to upload the same app twice to Firebase for iOS? iOS 应用程序未收到 Firebase 通知 - iOS app not receiving Firebase notifications Sending Google Analytics Events via API: How to get app_instance_id or client_id from Firebase SDK from web client? - Sending Google Analytics Events via API: How to get app_instance_id or client_id from Firebase SDK from web client? Firebase 应用程序检查不适用于 iOS 16 - Firebase app check not working with iOS 16 使用相同的 Firebase 应用程序与 Web 和移动应用程序 - Using Same Firebase App With Web and Mobile App 在 Firebase 应用程序分发中链接到 Google Play 的问题 - Issue Linking to Google Play in Firebase App Distribution 取消从 FireBase 客户端 Android/IOS 收到的通知? - Cancel notification recieved from FireBase client side Android/IOS? 将 IOS firebase 应用程序连接到我的 flutter 应用程序 - Connecting IOS firebase app to my flutter app 在 iOS 应用程序和 Firebase/Google Analytics 中配置多个 Firebase 项目运行时 - Configure Multiple Firebase Projects Runtime in iOS application and Firebase/Google Analytics 在 Kotlin 客户端应用程序中发送 FCM 推送通知 - Firebase 云消息传递 - Sending FCM Push Notification in Kotlin Client App - Firebase Cloud Messaging
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM