User Signup and Login with Firebase for IOS

With Parse being killed off by facebook I wanted to give Firebase a shot. Here is a simple Signup and Login example using Swift in iOS.

First, you want to go ahead and create an account. They offer a free development account, this should be enough to get you going.

This article is a big help in getting Firebase integrated into your Xcode project.

Below is commented code of the example.

Here is a screenshot of a newly added user in the Firebase dashboard.

Screen Shot 2016-02-04 at 2.33.13 PM



User Signup with Parse for IOS

I have used Parse for several projects and It’s reasonably priced. This simple example is about using the PFUser object to sign up a new user to your application.

I will assume you have the Parse IOS Swift SDK installed in your new Xcode project.

1. Make sure you have your provided API Keys setup in the AppDelegate.swift

2.  In our ViewController.swift we will create some @IBOutlets to some text fields.

3. We will create an @IBAction that links to a button

 4.  The signUpWith(username, email, password) method

If all goes well, then you would see a new user in your Parse dashboard for the User class.

Screen Shot 2016-01-19 at 1.43.11 PM



Using SQLite.swift To Save Data

Simple example using SQLite.swift. Follow the link to their git repository for more information and further documentation. I went this route for a current project, mainly to use sqlite. I would normally opt for since it now has good swift support.



© 2018 Aldomatic

Theme by Anders NorenUp ↑