728x90 전체 글565 firebase 보안세팅 rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /Places/{docId} { allow read, write; } match /{document=**} { allow read; allow write: if request.auth.uid != null; } } } 어떤사람이 해낸 예시임, 나는 moim collection에 대해서만, https://stackoverflow.com/questions/69662434/firestore-allow-read-if-collection-name-matches Firestore allow read if collection name matches I'.. 2022. 6. 24. node js for문 일반적인 for문은 알고 있으니 생략, 추가적으로 만들수 있는 for문, foreach , for in , for of 다 다르니 확인 https://dydals5678.tistory.com/66 javascript - foreach 문 , for in 문 , for of문 ◎ foreach 문 ▼ 내용 foreach 반복문은 오직 Array 객체에서만 사용가능한 메서드입니다. (ES6부터는 Map,Set 지원) 배열의 요소들을 반복하여 작업을 수행할수 있습니다. foreach구문의 인자로 callback함 dydals5678.tistory.com foreach도 간단하게 가능하다. moimMemberSnapshot.docs.forEach(doc => { functions.logger.log(doc.id.. 2022. 6. 23. firebase function oncall과 on request 차이점 https://stackoverflow.com/questions/51066434/firebase-cloud-functions-difference-between-onrequest-and-oncall Firebase Cloud Functions: Difference between onRequest and onCall Going through the docs, I encountered: ...you can call functions directly with an HTTP request or a call from the client. ~ source there (link in the quote) is a mention about functions.ht... stackoverflow.com 2022. 6. 22. firebase remote config를 통한 공지 보여주기 프로세스 remoteconfig로 공지를 띄울건지만 일단 체크, remoteconfig -> 마지막 공지 id 가져오기 //-> 공지사항 descending으로 젤 마지막 꺼 가지고 오기, ->sharedpref으로 봤던 공지인지 id 확인 -> dialog 로 공지 띄우기 ->본 공지id는 sharedpref에 저장 요렇게 하면 가장 경제적으로 공지를 보여줄 수 있을 것 같았음 2022. 6. 20. 이전 1 ··· 98 99 100 101 102 103 104 ··· 142 다음 728x90