问题
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