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.
- 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 packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
||May 14, 2019
||May 6, 2019
||Apr 8, 2019
||Apr 8, 2019
||Apr 5, 2019
||Feb 25, 2019
||Feb 21, 2019
||Feb 15, 2019
||Feb 8, 2019
||Jan 24, 2019
All 26 versions...
We analyzed this package on May 20, 2019, and provided a score, details, and suggestions below.
Analysis was completed with status completed using:
- Dart: 2.3.0
- pana: 0.12.15
- Flutter: 1.5.8
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.