This project integrates Firebase with a Flutter application, providing guidance on setup, Firebase configuration, and notifications. Follow these instructions to set up and run the application locally.
- Install Flutter on your local machine (Flutter Installation Guide).
- Have a Firebase account and access to the Firebase Console.
- Use an IDE such as VSCode or Android Studio.
Clone the repository to your local machine:
First, clone the repository to your local machine:
git clone <repository-url>
cd <repository-directory>
This is a Flutter project integrated with Firebase. The following instructions will guide you through the setup and running of the application locally.
- Create a Firebase Project: Go to the Firebase Console and create a new project.
- Add an iOS App: In the Firebase Console, add a new iOS app to your project. Download the
GoogleService-Info.plist
file when prompted. - Add Firebase SDK: Place the
GoogleService-Info.plist
file into theios/Runner
directory of your Flutter project. - Install CocoaPods Dependencies: Navigate to the
ios
directory and runpod install
to install CocoaPods dependencies.
- Add an Android App: In the Firebase Console, add a new Android app to your project. Download the
google-services.json
file when prompted. - Add Firebase SDK: Place the
google-services.json
file into theandroid/app
directory of your Flutter project. - Update Build Files: Update the
android/build.gradle
file to include the Google services classpath and theandroid/app/build.gradle
file to apply the Google services plugin.
Run the following command to fetch all necessary Flutter packages:
flutter pub get
Refer the official documents for setup.
To run the application locally, execute:
flutter run
- iOS Simulator Issues: Ensure your Xcode and CocoaPods are up to date.
- Android Emulator Issues: Verify your Android SDK and emulator configurations are correct and up to date.
- Firestore Rules: Configure Firestore rules for testing and development via the Firebase Console under Firestore Database -> Rules.
- Authentication Providers: Set up authentication providers in the Firebase Console under Authentication -> Sign-in Method.
For handling notifications, refer to the official documentation:
- Firebase Docs: Firebase Authentication
- Flutter Local Notifications: Flutter Local Notifications Package
#screenShots