How do I return a list of users if I use the Firebase simple username & password authentication

后端 未结 7 2095
猫巷女王i
猫巷女王i 2020-11-22 05:06

Not sure if I am doing something wrong but using this api https://www.firebase.com/docs/security/simple-login-email-password.html I can successfully create a user - accordin

7条回答
  •  攒了一身酷
    2020-11-22 05:22

    i will answer it simply as much as possible just add the registered user to your data base by using the following code

    you can also use shared prefernces to save the data locally but it won't be able for other user.

    once you save the list of user in the database simply retrieve it from there using adapters

    FirebaseDatabase.getInstance().getReference().child("my_user")
                            .child(task.getResult().getUser().getUid())
                            .child("username").setValue(autoCompleteTextView1.getText().toString());
    

提交回复
热议问题