* iOS 개인 프로젝트 시작 전 기본 개념 복귀 차원으로 내용을 정리합니다.
messageTextfield.text 와 Auth.auth().currentUser 가 둘 다 nil이 아니면 각 messageBody와 messageSender에 담 내부 코드를 실행한다는 의미임.
Auth.auth().currentUser?는 로그인한 유저가 있을 경우 정보가 나오고 아니면 nil이 찍힘
FireStore 데이터 추가
데이터 딕셔내리 만들고, error completion block에 print 찍어보기
에러 해결
[Firebase/Firestore][I-FST000001] Write at users~~failed: Missing or insufficient permissions.
규칙 => allow read, write: if true로 변경하기
https://firebase.google.com/docs/firestore/quickstart#swift
'[iOS] App Development' 카테고리의 다른 글
[iOS] 설정화면 -> 설정 디테일 화면 구현 방법(tableView) (0) | 2021.12.16 |
---|---|
[iOS] 디자인패턴 : MVVM (1) | 2021.12.03 |
[iOS] 기본 개념 정리 #8 : UITableVieCell, Cell.xib (0) | 2021.11.08 |
[iOS] 기본 개념 정리 #7 : Static Keyword / TableView / TableViewCell / UITableViewDataSource / UITableViewDelegate (0) | 2021.11.07 |
[iOS] 기본 개념 정리 #6 : Firebase/Auth 회원가입, 로그인, 로그아웃, 네비게이션바에서 back 버튼 없애기 (0) | 2021.11.05 |