android - 是否可以在 Web 和 Android 客户端中通过 Google 使用 Firebase 的内置身份验证?

标签 android firebase firebase-security firebase-authentication

按照 Firebase docs 中的说明进行操作为了配置网络客户端应用程序,它说我需要在 Google 开发者控制台中创建一个新的客户端应用程序。这可以。但是,我已经在此处为我的服务的 Android 客户端应用程序定义了一个客户端应用程序。每个都有自己的 Google Console 客户端 ID,而 Firebase 只允许您在 Firebase 仪表板的“登录和身份验证”部分中输入一个客户端 ID 和客户端 key 。我是否遗漏了某些内容,或者单个 Firebase 应用无法同时支持 Web 和 Android 客户端应用?

最佳答案

看来这个问题已在 google group 中得到解答。 .

The workflow for using Google login across multiple different application types is to create one project in the Google Developer Console with multiple separate client IDs (one for Web, one for Android, one for iOS, etc.). Make sure they all belong to the same project though! Then, in your Firebase's Dashboard, just use the client ID and Secret for your Web application. And that should be it. You don't need to tell Firebase about the Android or iOS client IDs at all and things should just work.

关于android - 是否可以在 Web 和 Android 客户端中通过 Google 使用 Firebase 的内置身份验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30744233/

相关文章:

javascript - AngularFire:恢复匿名 session

android - React Native Firebase 手机身份验证使应用程序在 reCaptcha 上崩溃(Android)

Android:如何流式传输视频

java - 2 ArrayList中的常见对象

java - 使用 Firestore Transaction 更新多个文档

swift - 如何使用 Swift 3 访问字典值?

android - 如何在android上选择当前主题

android - FCM HTTP 请求返回 message_id 但在 Android 上没有收到消息

security - 保护 Firebase : Preventing administrators from being able to see all users' data in the Forge?

reactjs - Firebase 错误 : Missing or insufficient permissions with react js