简体   繁体   English

我是否需要将单独的google-services.json用于Firebase和Google API

[英]Do I need separate google-services.json for firebase and Google APIs

I am using firebase database in my app. 我在我的应用程序中使用Firebase数据库。 I wish to add Google+ login using Google API I don't want to use FirebaseUI for login feature. 我希望使用Google API添加Google+登录,但我不想将FirebaseUI用于登录功能。 I have an existing google-services.json created from firebase console . 我有一个从firebase控制台创建的现有google-services.json。 Do I need to create and add another google-services.json from google developer console? 我需要从Google开发人员控制台创建并添加另一个google-services.json吗?

You should use the google-services.json that is supplied for your app in the Firebase console. 您应该在Firebase控制台中使用为您的应用提供的google-services.json。 If this is missing your Google+ sign-in parameter, you can supply it manually by calling a method or as a string resource. 如果缺少您的Google+登录参数,则可以通过调用方法或作为字符串资源来手动提供。

I'm not sure about the parameter because I didn't do the google sign-in. 我不确定参数,因为我没有进行google登录。 Yet, I had a similar situation with running both Firebase and Google Analytics on the same app. 但是,在同一应用程序上同时运行Firebase和Google Analytics(分析)时,我遇到了类似的情况。 There I used google-services.json from Firebase console and added missing GA tracked by calling newTracker analytics.newTracker(GA_TRACKER_ID); 在那里,我从Firebase控制台使用了google-services.json,并添加了通过调用newTracker analytics.newTracker(GA_TRACKER_ID);跟踪的丢失GA analytics.newTracker(GA_TRACKER_ID); . I believe that with sign-in it's a similar procedure. 我认为登录时的过程与此类似。

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

相关问题 我是否需要为每个productFlavor新的google-services.json? - Do I need a new google-services.json for each productFlavor? 适用于Firebase和Google Analytics(分析)的google-services.json - google-services.json for Firebase and Google Analytics 我可以在不使用google-services.json的情况下初始化Firebase吗? - Can I initialize Firebase without using google-services.json? 具有多个项目的 Firebase google-services.json? - Firebase google-services.json with multiple projects? Firebase:google-services.json 错误 - Firebase: google-services.json error Firebase google-services.json文件 - Firebase google-services.json file 离子Firebase指定google-services.json - Ionic firebase specify google-services.json google-services.json - 更改了 package_name - 我需要创建一个新的配置文件吗 - google-services.json - changed package_name - do i need to create a new configuration file 没有 google-services.json 和 google play 服务的 Firebase crashlytics - Firebase crashlytics without google-services.json and google play services 在我将原来的google-services.json替换为与Firebase相关的google-services.json后,Google登录停止了工作 - Google sign-in stopped working after I replaced the original google-services.json with one pertaining to Firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM