skip to Main Content

Javascript – db request firebase with react

please can you help me to write this request in a new firebase notation please useEffect(() => { let unsubscribe; if(postId){ unsubscribe =db .collection("posts") .doc(postId) .colection("comments") .onSnapshot((snapshot)=>{ setcomments(snapshot.doc.map((doc)=>doc.data())) }) } }, []); best regards im trying to write it but…

VIEW QUESTION

Firebase confirm with password

My Firebase app has a certain sensitive operation, that the already signed-in user would ideally confirm by reentering his password. I would like to show this (already signed-in) user a modal requiring him to reenter password and have Firebase check…

VIEW QUESTION

Firebase – android app is crashing and showing this error. I have changed the dependency versions multiple times also but nothing is working

2023-09-23 12:16:25.889 22438-22438/com.example.firebaseauth E/le.firebaseauth: Attempt to load writable dex file: /data/data/com.example.firebaseauth/code_cache/.overlay/base.apk/classes3.dex 2023-09-23 12:16:28.948 22438-22438/com.example.firebaseauth E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.firebaseauth, PID: 22438 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.firebaseauth/com.example.firebaseauth.login}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.firebaseauth. Make sure…

VIEW QUESTION
Back To Top
Search