SimCoderYoutube/WhatsAppClone

mUserDB.addListenerForSingleValueEvent doesn't fire

jadeye opened this issue · 0 comments

Hello
Following your youtube,
mUserDB.addListenerForSingleValueEvent doesn't fire.
Tried everything including adding db Url:

String dbUrl = "https://xxx-xxx.europe-west1.firebasedatabase.app/";
    FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
    if(user!= null){
         final DatabaseReference mUserDB = FirebaseDatabase.getInstance().getReferenceFromUrl(dbUrl).child("user").child(user.getUid());

Google docs says you need to refer to db Url if other then us-central1.