Firebase
-
[android] Cloud Firebase 데이터 쓰기 및 읽기Android/공부 2020. 10. 27. 11:24
1. build.gradle (project) 에 google-service 플러그인 추가하기 buildscript { repositories { // Check that you have the following line (if not, add it): google() // Google's Maven repository } dependencies { // ... // Add the following line: classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin } } allprojects { // ... repositories { // Check that you have the following line (if not, a..
-
[android] firebase 회원가입과 로그인Android/공부 2020. 9. 29. 13:19
1. 회원가입하기 build.gradle(Module: app) 에 다음 소스를 추가해준다. implementation 'com.google.firebase:firebase-auth:19.3.2' 자바코드에서 FirebaseAuth의 인스턴스를 선언한다. private FirebaseAuth mAuth; 그런 다음 onCreate() 메서드에서 FirebaseAuth 를 초기화해준다. mAuth = FirebaseAuth.getInstance(); 신규 사용자 가입 [ createUserWithEmailAndPassword ] mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(this, new OnCompleteLis..
-
[Android] android 와 firebase 연동하기Android/공부 2020. 9. 29. 13:04
1. Firebase 홈페이지 (console.firebase.google.com)에서 구글 로그인 후 새 프로젝트 추가하기 ⑴ 프로젝트 추가를 눌러 새 프로젝트 생성 ⑵ 앞으로 사용할 프로젝트 이름 입력 ⑶ [계속] 버튼을 눌러 다음으로 진행 ⑷ 구글 계정 선택 후 [프로젝트 만들기] 클릭 2. 안드로이드 프로젝트와 파이어베이스 연결하기 ⑴ 안드로이드와 파이어베이스 환경설정 안드로이드 버튼을 눌러 프로젝트 연결 창으로 이동 이 화면이 뜨면 아래 처럼 나오는 안드로이드 프로젝트 패키지 이름을 입력한다. google-services.json 파일을 다운받아 안드로이드 프로젝트에 넣어준다. buildscript { repositories { // Check that you have the following ..