How to get userID by user Email Firebase android?

前端 未结 5 1789
夕颜
夕颜 2020-12-29 11:58

Given a email address, is it possbile to get userID of a person? For example,

If I have a variable email that has email of the person. Can I get their ID by doing so

5条回答
  •  悲哀的现实
    2020-12-29 12:07

    The easy way to solve this is to create another model(table), that holds the users email address and id. This way you can retrieve the id having the email. There are solutions that use java-script, but they have complex running time.

提交回复
热议问题