[Solved] What’s wrong in this code for firebase database? [closed]
[ad_1] You need to change this line of code: mDatabaseReference.child(“drivers”).child(userid).toString() != userid || mDatabaseReference.child(“parents”).child(userid).toString() != useremail) { with mDatabaseReference.child(“drivers”).child(userid).getRef().toString() != userid || mDatabaseReference.child(“parents”).getRef().child(userid).toString() != useremail) { As you probably see, i have added the getRef() method to actually get the reference. Hope it helps. 7 [ad_2] solved What’s wrong in this code for firebase database? … Read more