firebase / firebase/firebase-android-sdk
Initialize FirebaseApp without google-services.json
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 710
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 31
Description
* 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
.
```
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 .
Contributor guide
Assessment
This issue has not been assessed yet.