[英]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.