How do you include a username when storing email and password using Firebase (BaaS) in an Android app?

前端 未结 3 1440
野的像风
野的像风 2020-11-27 16:56

The Firebase createUser() method takes an email and password field, but what if I want to also allow the user a custom username similar to Snapchat, Instagram,

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 17:46

    Yes, there is a way how to update user info in Firebase. All you need - to read this article in Firebase docs and implement method described here Update user info

    Using this method you can update diplayName property of FirabaseUser object. Just set user name for displayName property and commit your changes.

    I hope this will help you.

提交回复
热议问题