0

[enter image description here][1]I have problem that I can't read/write to firebase I already tried alot of variant of сode to fix the issue, all looks like as proper, and sdk implemented as proper, and I don't get any expectation, in Manifest has network permission. its never enters to override function it just skip it, which issue may occurs?

https://i.stack.imgur.com/FDc3o.png

private FirebaseFirestore db = FirebaseFirestore.getInstance();
  db.collection("Account")
                    .get()
                    .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
                        @Override
                        public void onComplete(@NonNull Task<QuerySnapshot> task) {
                            if (task.isSuccessful()) {
                                for (QueryDocumentSnapshot document : task.getResult()) {
                                    Log.d("sad", document.getId() + " => " + document.getData());
                                }
                            } else {
                                Log.w("TAG", "Error getting documents.", task.getException());
                            }
                        }
                    });
4

0 に答える 0