按照 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/