Firebase for Android
Essential Firebase services: Authentication, Firestore, Realtime Database, Cloud Messaging, Analytics, Crashlytics, Storage, and Remote Config
1Which Firebase configuration file must be placed in the app/ folder of an Android project?
Which Firebase configuration file must be placed in the app/ folder of an Android project?
Câu trả lời
The google-services.json file contains all Firebase configurations (API keys, project ID, etc.) and must be placed in the app/ folder. This file is generated from the Firebase console when adding the Android app to the Firebase project.
2How do you create a user account with email and password in Firebase Authentication?
How do you create a user account with email and password in Firebase Authentication?
Câu trả lời
The createUserWithEmailAndPassword() method of FirebaseAuth creates a new user account with the provided credentials. It returns a Task that, on success, contains an AuthResult with the created user's information.
3How do you retrieve the currently logged-in user in Firebase Auth?
How do you retrieve the currently logged-in user in Firebase Auth?
Câu trả lời
The currentUser property of FirebaseAuth returns the currently logged-in user as a FirebaseUser object, or null if no user is logged in. This object contains information like uid, email, displayName, photoUrl, etc.
What is the syntax to add a document in Cloud Firestore?
Which Firestore method allows updating only certain fields of a document?
+20 câu hỏi phỏng vấn
Các chủ đề phỏng vấn Android khác
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Permissions and Device Features
Android MVVM Architecture
Advanced Android Networking
Kotlin Collections and Operators
Kotlin Coroutines and Flow
Android Dependency Injection
Android MVI Architecture
Android Clean Architecture
Android Compose Advanced
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Nắm vững Android cho lần phỏng vấn tiếp theo
Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.
Bắt đầu miễn phí