Add username, profile picture, etc to sign up with Firebase (Swift 2)

给你一囗甜甜゛ 提交于 2019-12-13 02:34:10

问题


Hey guys I've been watching some courses of making social apps and all of them were made with Parse, so now that I can't use it for the future because is shutting down I'm using Firebase.

The thing is Firebase has some information about authenticate user with email and password and I don't know how to send the username, profile picture, bio, etc's user information to Firebase. Any help? Thank you.


回答1:


You can authenticate the user https://firebase.google.com/docs/auth/ios/password-auth, then store the user information under the user's uid key in the realtime database https://firebase.google.com/docs/database/ios/save-data.

This is the documentation on structuring databases: https://firebase.google.com/docs/database/ios/structure-data#how_data_is_structured_its_a_json_tree

Let me know if you would like any more information 😉

I'm also switching from Parse to Firebase and was wondering the same thing.



来源:https://stackoverflow.com/questions/37516729/add-username-profile-picture-etc-to-sign-up-with-firebase-swift-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!