-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Missing google_app_id #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@smoi the That generated strings file will contain a string called You definitely do not have to use the plugin and you're free to initialize |
Even when using The idea of using two |
I cannot even begin to understand how can you just blindly close a bug after referring to method of initialisation done by xml files. The google_app_id should be taken from the configuration set in FirebaseOptions, there are people in this world that have a project with more than Release/Debug complexity (hint: flavors and dimensions). This bug is not fixed and it still exists in 15 & 16 major releases |
@originx the bug is tracked here: |
thank you for the link, also that bug is opened since Oct 9, 2018, that is impressive, I guess Firebase sdk initialization is not a critical feature |
I'm following the guide here https://firebase.google.com/docs/configure/ to use multiple projects, one for dev and one for prod i've configured everything correct like the example provided
// Manually configure Firebase Options FirebaseOptions options = new FirebaseOptions.Builder() .setApplicationId("1:27992087142:android:ce3b6448250083d1") // Required for Analytics. .setApiKey("AIzaSyADUe90ULnQDuGShD9W23RDP0xmeDc6Mvw") // Required for Auth. .setDatabaseUrl("https://myproject.firebaseio.com") // Required for RTDB. .build();
Firebase works fine but I get this error for analytics "GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id."
How can I use two different analytics also for dev and prod? In the documentation it says
but it's not clear to me. Should I always provide the production "google-services.json"?
The text was updated successfully, but these errors were encountered: