skip to Main Content

Firebase check item if exist

I'm saving an id to Firebase Realtime Database like this: binding.ivStar.setOnClickListener { firebaseDb.getReference("Users").child(uid).child("movie").push() .setValue(args.movie?.id)} And I need to check if this id exists in Firebase. And I did like this: private fun checkData() { val postRef = firebaseDb.getReference("Users").child(uid).child("movie") postRef.addListenerForSingleValueEvent(object :…

VIEW QUESTION

Firebase – Flutterfire cli not showing windows as an option for platform to support

The following error is thrown when I tried to run a windows application [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: DefaultFirebaseOptions have not been configured for windows - you can reconfigure this by running the FlutterFire CLI again. #0 DefaultFirebaseOptions.currentPlatform (package:user_authentication/firebase_options.dart:36:9) #1…

VIEW QUESTION

Async/Await: "out of range error" when trying to access array filled with downloaded images from firebase storage – Ios swift

I tried to download successfully uploaded images to storage with the code: func retrieveAllPictures(helloid: String) async { //Referenzen zu den Datenbanken let db = Firestore.firestore() //Alle Foto Ids in einem Array speichern let result = try? await db.collection("events").document(helloid).getDocument() allPictureIDs =…

VIEW QUESTION
Back To Top
Search