Firebase recently added Flutter Web support for Firestore, Firebase Auth and Firestore Storage. Here's how I set up a pre-existing Flutter + Firestore mobile app to run on Web. Set up the Web project First I ran flutter create . as instructed at https://flutter.dev/docs/get-started/web#add-web-support-to-an-existing-app. Add js
My Flutter app stopped compiling today, with the following exception: Execution failed for task ':firebase_auth:compileReleaseJavaWithJavac'. > java.lang.NullPointerException (no error message) A search led me to https://github.com/flutter/flutter/issues/27090, which states you should migrate to AndroidX by setting two variables in android/gradle.
I've recently published a few packages to help write unit tests for Flutter apps that use Firebase. This includes Firestore, Firebase Storage, Firebase Authentication with Google Sign In. Quick links to the packages * https://pub.dev/packages/cloud_firestore_mocks * https://pub.dev/packages/firebase_storage_mocks * https://pub.dev/
I used Firebase Messaging to implement notifications in Flutter. Despite the many documentations around, it took me a while to get my first notification in. Features With Firebase Messaging, you can send messages to: * a single device, identified by an FCM token. * topics: typically for several devices of one same
Following the Flutter Firebase codelab: * Created a Firebase project. * Added the debug SHA signature. To get it, run keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore with no password. * Ran it in the emulator. * It failed with an error about multidex. Luckily the tutorial explains how to work around
After integrating Firebase Database, my alpha builds started failing with an unhelpful "Developer Error". I found this post explaining you should whitelist the SHA1 of both the debug and release version in the Firebase Console. Indeed, I had forgotten to add the one for the release version. So I ran
In the previous post, we set up authentication. Now that the user is authenticated, we can store and retrieve data from the database specific to that user. Modeling the data The Firebase Database documentation explains how to model data in a way that avoids data duplication. It's called data normalization,