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
Back To Top
Search