skip to Main Content

Firebase snapshot doesn't exist

Log.d("ıd check",subCatId+catId); database.getReference().child("categories").child(catId) .child("subCategories").child(subCatId) .child("questions").addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot) { if (snapshot.exists()) { Log.d("exixtance","DOES EXİSTS"); timer.start(); for (DataSnapshot dataSnapshot : snapshot.getChildren()) { prossesdata(dataSnapshot); loadingdialog.dismiss(); } if (list.size() > 0) { for (int i = 0; i…

VIEW QUESTION

Flutter – Firebase call exception

I'm trying to make simple login logic using Firebase but can't get rid of this error: Exception has occurred. DartError: Bad state: Cannot fire new event. Controller is already firing an event Here is my code: import 'package:firebase_database/firebase_database.dart'; import 'package:flutter/material.dart';…

VIEW QUESTION
Back To Top
Search