How to delete a Firebase user from Android App?

前端 未结 8 1074
攒了一身酷
攒了一身酷 2020-12-14 08:38

I\'m trying to code a Delete User method in my Android App, but I have some issues each time I execute it. This method will be executed when a user pushes the D

8条回答
  •  时光取名叫无心
    2020-12-14 09:11

    If you are using AuthUI or FirebaseAuth you can just do the following

     AuthUI.getInstance().delete(context).addOnSuccessListener {
               
     }.addOnFailureListener{
    
     }
    

    OR

    FirebaseAuth.getInstance().currentUser.delete().addOnSuccessListener...
    

提交回复
热议问题