-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_core] for iOS will not connect to Firebase #1329
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
same issue , only work on android |
Note that other Firebase services packages seem to work on iOS, but only because they seem to detect no instance of a Firebase app object created by firebase_core and then create a new instance. So this bug is only evident if you have a project with ONLY firebase_core by itself. |
yes I just delete the hole ios file in project |
I do |
I delete my ios file |
@sunjianan9900 Note that the issue is using firebase_core which does not return an app instance. Yes it will work if you then also use firebase_analytics, but only because if analytics does not find an app instance or the default, it re-creates one ... and thus it then works. So this is a workaround for the time being that does work. But you will probably find your return from firebase_core is still always null (see original issue code posted). Which is the actual problem. |
@sunjianan9900 exactly which ios file did you delete? Then you appear to have repaired the project with If I create a brand new flutter project with swift support and add code at top of this issue. You will find it fails still. |
Hey, our firebase_core rework has now landed on master via #2890 - we hope to start publishing preview releases to test out next week which should solve this issue (and others). Thank you for raising this issue 👍 |
firebase_core does not work on iOS 12.x or 13.x. The app builds for iOS but any call to FirebaseApp.allApps() returns null .... always. Works fine on Android but not iOS, will not connect to Firebase iOS app.
Example code on a brand new template Flutter project. Using firebase_core 0.4.0+9 and created a fresh new Flutter project with Flutter create and added just firebase_core package. Fixes in previous issue tried and failed.
Flutter doctor.
The text was updated successfully, but these errors were encountered: