애플리케이션 개발자가 더 나은 애플리케이션을 개발할 수 있도록 도와주는 개발 플랫폼
구글에서 만든 모바일 및 애플리케이션 개발 플랫폼, 다양한 플랫폼을 지원한다.
(Android, iOS 뿐만 아니라, Web, Flutter, C++, 게임, 서버 기타 등등)
빌드
(개발과정, 더 빠르게 시장에 진출하고 사용자에게 가치를 전달)출시 및 모니터링
(짧은 시간에 훨씬 수월하게 앱 품질을 향상)참여
(앱 경험 최적화 및 고객 만족도 유지)https://firebase.google.com/
로그인 후 프로젝트 생성
google-services.json 파일 다운로드 후 Android 프로젝트의 app 수준 루트 디렉토리에 위치시킨다.
Kotlin DSL(build.gradle.kts) 기준
build.gradle.kts
plugins {
// ...
// Add the dependency for the Google services Gradle plugin
id("com.google.gms.google-services") version "4.4.2" apply false
}
build.gradle.kts
plugins {
id("com.android.application")
// Add the Google services Gradle plugin
id("com.google.gms.google-services")
...
}
dependencies {
// Import the Firebase BoM
implementation(platform("com.google.firebase:firebase-bom:33.8.0"))
}
빌드 - Realtime Database
데이터베이스 옵션 - 미국기준
보안 규칙 - 테스트모드에서 시작
데이터베이스 url이 생성된다.
빌드 - Authentication
로그인 제공업체 선택 - 기본 제공업체 이메일/비밀번호
Android 프로젝트에 Firebase Authentication 추가
공식문서링크
실행 - Messaging
push 메시지용
build.gradle.kts
dependencies {
...
implementation(platform("com.google.firebase:firebase-bom:33.8.0"))
implementation("com.google.firebase:firebase-auth") // Authentication
implementation("com.google.firebase:firebase-database") // Realtime Database
implementation("com.google.firebase:firebase-messaging") // Cloud Message
}
참고
FastCampus 강의 - 35개 프로젝트로 배우는 Android 앱 개발 feat. Jetpack Compose