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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 IllegalStateException: Default FirebaseApp is not initialized #317
Comments
@Clon1998 - It looks like you have not initialised the default Firebase app. Looking at the source code for Dynamic Links, you can only receive a Dynamic Link for the default Firebase app: https://github.com/firebase/flutterfire/blob/master/packages/firebase_dynamic_links/firebase_dynamic_links/android/src/main/java/io/flutter/plugins/firebase/dynamiclinks/FlutterFirebaseDynamicLinksPlugin.java#L112 |
As far as I am aware, I initialized it. At least all other firebase services are working fine within my flutter app (Messaging, Remote config, ...). |
Hard to tell without seeing any code but the exception is pretty clear on what the bug is. |
Any update on that? |
I went ahead and moved the code for initializing Firebase pretty high up in the main() method in my project. However, even with that change, I am still receiving crash reports with the same content stating that firebase is NOT initialized which clearly is not the case. |
@Clon1998 - Try adding the service file for android. |
@russellwheatley thanks for the hint. Seems like I did not update the service files on my CI server. |
@russellwheatley For reference, the my service file generated by flutterfire looks like: {
"project_info": {
"project_number": "<REMOVED>",
"project_id": "<REMOVED>",
"storage_bucket": "<REMOVED>"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "<REMOVED>",
"android_client_info": {
"package_name": "com.mobileraker.android"
}
},
"oauth_client": [
{
"client_id": "<REMOVED>",
"client_type": 1,
"android_info": {
"package_name": "com.mobileraker.android",
"certificate_hash": "<REMOVED>"
}
},
{
"client_id": "<REMOVED>",
"client_type": 3
}
],
"api_key": [
{
"current_key": "<REMOVED>"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "<REMOVED>",
"client_type": 3
},
{
"client_id": "<REMOVED>",
"client_type": 2,
"ios_info": {
"bundle_id": "com.mobileraker.ios"
}
}
]
}
}
}
],
"configuration_version": "1"
} |
@Clon1998 - I'd make firebase initialisation the first thing to happen in |
Neither have I seen that. I'll move the init part above my logger setup to see if something changes. |
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Android
List of dependencies used.
flutter pub deps -s list
dev dependencies:
dependency overrides:
transitive dependencies:
Steps to reproduce
N.A.
Expected Behavior
No crashes.
Actual Behavior
After a recent upgrade my app suddently started to throw the following error for some users reported via the Vitals tab of the playstore.
Additional Information
No response
The text was updated successfully, but these errors were encountered: