A Flutter plugin to use the Firebase Core API, which enables connecting to multiple Firebase apps.
For Flutter plugins for other Firebase products, see FlutterFire.md.
Note: This plugin is still under development, and some APIs might not be available yet. Feedback and Pull Requests are most welcome!
To use this plugin, add
firebase_core as a dependency in your pubspec.yaml file.
example directory for a complete sample app using Firebase Core.
- Update google-services Android gradle plugin to 4.3.0 in documentation and examples.
- Fix Android compilation warning.
- Automatically use version from pubspec.yaml when reporting usage to Firebase.
- Rollback of automatic plugin version retrieval.
- Automate the retrieval of the plugin's version when reporting usage to Firebase.
- Add missing template type parameter to
- Bump minimum Flutter version to 1.5.0.
- Replace invokeMethod with invokeMapMethod wherever necessary.
- Update user agent name. Set to
flutter-fire-core for consistency with other
- Send user agent to Firebase.
- Update Android dependencies to latest.
- Updates Android firebase-core dependency to a version that is compatible with other Flutterfire plugins.
- Remove Gradle BoM to avoid Gradle version issues.
- Move Android dependency to Gradle BoM to help maintain compatability
with other FlutterFire plugins.
- Add nil check on static functions to prevent crashes or unwanted behaviors.
- Remove an assertion that can interfere with hot-restart.
- Log a more detailed warning at build time about the previous AndroidX
- Breaking change. Migrate from the deprecated original Android Support
Library to AndroidX. This shouldn't result in any functional changes, but it
requires any Android apps using this plugin to also
migrate if they're
using the original support library.
- Bump Android dependencies to latest.
- Bump Android and Firebase dependency versions.
- Updated Gradle tooling to match Android Studio 3.1.2.
- Updated Google Play Services dependencies to version 15.0.0.
- Simplified podspec for Cocoapods 1.5.0, avoiding link issues in app archives.
- Fix setting project ID on Android.
- Breaking change. Options API is now async to interoperate with native code that configures Firebase apps.
- Provide a getter for the default app
- Fix setting of GCM sender ID on iOS
- Fix behavior of constructor for named Firebase apps.
- Breaking change. Set SDK constraints to match the Flutter beta release.
- Fixed Dart 2 type errors.
- Enabled use in Swift projects.
- Moved to the io.flutter.plugins org.
- Fixed warnings from the Dart 2.0 analyzer.
- Simplified and upgraded Android project template to Android SDK 27.
- Updated package description.
- Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin
3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in
order to use this version of the plugin. Instructions can be found
- Fixes for database URL on Android
- Make GCM sender id optional on Android
- Relax GMS dependency to 11.+
Demonstrates how to use the firebase_core plugin.
For help getting started with Flutter, view our online
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below.
Analysis was completed with status completed using:
- Dart: 2.4.0
- pana: 0.12.19
- Flutter: 1.7.8+hotfix.4
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency (