Firebase¶
This module streamlines the integration of Firebase Cloud Messaging (FCM) into your LiWE3 Flutter app.
Setup¶
- Create your Firebase project at Firebase Console.
a. Click on "Add Project". b. Enter your project name.
- Navigate to the Project Settings.
a. Click on the gear icon in the top left corner. b. Click on "Project Settings".
- Add your Android and iOS apps to the project.
a. Click on the Android or iOS icon.
b. Follow the instructions to add your app.
c. Download the google-services.json
or GoogleService-Info.plist
file and place it in the android/app
or ios/Runner
directoryflutter create --platforms android ..
- Generate firebase_options.dart file.
a. First of all, be sure to have Flutter CLI installed. For linux do:
b. Then login using your Google account:
c. (optional) Test if you can see your projects:
d. Add the flutterfire binary to your project:
e. Generate the file:
- Enable Firestore and Firebase Cloud Messaging in your Firebase project.
a. Click on "Firestore Database" in the left menu.
b. Click on "Create Database".
c. Click on "Start in test mode".
d. Click on "Enable".