Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKumar S
Courses Plus Student 5,974 PointsHelp, can someone please share details on how to pass email address data to firebase platform.
I'm trying firebase as backend source instead of parse.com as parse is no longer accepting new users. So please share details on how to pass username, password,email values to firebase platform.
I have written the code like below to save username and password but email option is not there to enter. So i have removed email address from the UI and tried it stored the data with username and password.
Firebase *ref = [[Firebase alloc] initWithUrl:@"URL"]; [ref createUser:username password:password withValueCompletionBlock:^(NSError *error, NSDictionary *result) { if (error) { UIAlertView *aView = [[UIAlertView alloc] initWithTitle:@"Sorry!" message:@"Unable to create account" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles: nil]; } else { NSString *uid = [result objectForKey:@"uid"]; NSLog(@"Successfully created user account with uid: %@", uid); } }];
1 Answer
landonferrier
25,097 PointsKumar, here is a full template for the social network application: Click Here.