Recall & Review
beginner
What is the first step to connect a Flutter app with Firebase?
Create a Firebase project in the Firebase Console and register your Flutter app by adding its package name.
Click to reveal answer
beginner
Which file must be downloaded and added to your Flutter project for Android Firebase setup?
The
google-services.json file must be downloaded from Firebase Console and placed in the android/app folder.Click to reveal answer
beginner
What is the purpose of the
firebase_core package in Flutter?It initializes Firebase in your Flutter app, allowing you to use Firebase services.
Click to reveal answer
intermediate
How do you initialize Firebase in your Flutter app's main function?
Use
WidgetsFlutterBinding.ensureInitialized(); then call await Firebase.initializeApp(); before running the app.Click to reveal answer
intermediate
What additional step is required for iOS Firebase setup after downloading
GoogleService-Info.plist?Add the
GoogleService-Info.plist file to the Runner project in Xcode and configure the ios/Podfile to use platform iOS 10 or higher.Click to reveal answer
Which Firebase package is essential to initialize Firebase in a Flutter app?
✗ Incorrect
The firebase_core package is required to initialize Firebase before using any other Firebase services.
Where should the
google-services.json file be placed in a Flutter project?✗ Incorrect
The google-services.json file must be placed inside the android/app folder for Android Firebase setup.
What command ensures Flutter widgets are initialized before Firebase initialization?
✗ Incorrect
WidgetsFlutterBinding.ensureInitialized() makes sure Flutter is ready before calling Firebase.initializeApp().
For iOS, which file must be added to the Xcode project for Firebase?
✗ Incorrect
GoogleService-Info.plist is the configuration file for Firebase on iOS and must be added to the Xcode project.
What minimum iOS platform version is recommended for Firebase in Flutter?
✗ Incorrect
Firebase requires iOS 10 or higher for proper functionality in Flutter apps.
Describe the steps to set up Firebase for a new Flutter Android app.
Think about what files and code changes are needed for Android.
You got /6 concepts.
Explain how to initialize Firebase in a Flutter app and why it is necessary.
Focus on the main function and app startup.
You got /4 concepts.