IssueRaiser

Initialize FirebaseApp without google-services.json

<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug.md --> * Android Studio version: _3.2_ * Firebase Component: Core/Analytics(Database, Firestore, Storage, Functions, etc) * Component version: 16.0.4 ### [REQUIRED] Step 3: Describe the problem I am trying to initialize the FirebaseApp, only by using the FirebaseOptions builder, like this, first thing in my application (I use only applicationId and ApiKey, since I only want the analytics for start) : ```java FirebaseOptions options = new FirebaseOptions.Builder() .setApplicationId(applicationID) // Required for Analytics. .setApiKey(apiKey) // Required for Auth. .build(); FirebaseApp.initializeApp(context, options); ``` I do not have a google-services.json file in my project, I have removed the FirebaseInitProvider, like this, in my AndroidManifest.xml: ```xml <provider android:name="com.google.firebase.provider.FirebaseInitProvider" android:authorities="${applicationId}.firebaseinitprovider" tools:node="remove"/>. ``` When starting the application, while trying to View events in the Android Studio debug log, like this: adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC I get Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI .

Posted by paularius on Oct 9, 2018, 3:01 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments

github (Software)

Initialize FirebaseApp without google-services.json

paulariusOct 9, 2018, 3:01 PM

<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug.md --> * Android Studio version: _3.2_ * Firebase Component: Core/Analytics(Database, Firestore, Storage, Functions, etc) * Component version: 16.0.4 ### [REQUIRED] Step 3: Describe the problem I am trying to initialize the FirebaseApp, only by using the FirebaseOptions builder, like this, first thing in my application (I use only applicationId and ApiKey, since I only want the analytics for start) : ```java FirebaseOptions options = new FirebaseOptions.Builder() .setApplicationId(applicationID) // Required for Analytics. .setApiKey(apiKey) // Required for Auth. .build(); FirebaseApp.initializeApp(context, options); ``` I do not have a google-services.json file in my project, I have removed the FirebaseInitProvider, like this, in my AndroidManifest.xml: ```xml <provider android:name="com.google.firebase.provider.FirebaseInitProvider" android:authorities="${applicationId}.firebaseinitprovider" tools:node="remove"/>. ``` When starting the application, while trying to View events in the Android Studio debug log, like this: adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC I get Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI .

Comments (0)

No comments yet. Start the discussion.

Comment on this issue