
Explore how to use Firebase real-time database with Swift to build a chat app, including setting up authentication, storing and syncing messages in real time, and showing online status.
Meet your future instructor, a Brazil-born developer who moved to New Zealand. He shares a lifelong passion for coding, early programming certificates, iOS experience.
Learn all the necessary steps necessary to create a Firebase account
Create a Firebase project from the dashboard and learn that a single Firebase can serve iOS, Android, and web apps. Name the Firebase subdomain clearly and avoid hyphens.
Learn few tips and tricks to create a new Firebase application, also a brief explanation about the options avaliable for us iOS developers.
In this lesson we will
How to create and setup an Swift project that works with Firebase Framework.
In this lesson we will:
The code in the end of this lecture will the offered as a boiled plate, in case you want go direct to coding.
In this lecture we will create a reference to Firebase for both project (the one setup with Cocoapods and the one setup using the Framework)
Learn how to write a value to Firebase using the same Firebase variable, including handling completion blocks and observers, and exploring inside and outside observer patterns.
Display Firebase data in real time by wiring a UILabel to a database value, set constraints and an outlet, and update the label text as data changes.
We can create some more descriptive nodes in Firebase (Json) in this example we will create a node users with users inside with name, last name, is online flag, email among others, all the fields are update in real time in the XCode console for testing.
In this lecture we will learn how to create a node for the users and append the username also append the user last name and set a flag "isOnline" that will indicate if the user is logged or not, all the code will be done in the Swift side.
In this lesson we will move the instructions to set the user details to inside the action for the UIButton, we also will start to send the value inside the UITextField.
In this lesson we will learn how to set the username to the UILabel in real time, so as the user changes its username all the devices get update at the same time
In this lesson we will learn how to set the background color to red or green depend on if the user is offline or online as the user change his status all the apps get the colors update instantaneous.
"I commit a little error in the class that I decide to live in the video as I think many students can learn from it" Icaro
In this lecture we will learn:
In this lecture we will learn how to create a new class to associate with the loginviewcontroller we create before hand and we will associate the outlet (UITextfield) and actions (UIButtons) to this new UIViewController class
In this lecture we will learn how to create a new user in Firebase, authenticate this user and capture its authorization data with Firabase
In this lecture we will learn how to create alert views to display messages to the users when something goes wrong in cases of login and sign up
In this lecture we will learn how to add a segue to the new UITableViewController after authenticate user with Firebase
Explore how Firebase's flattened NoSQL architecture models rooms, messages, and users, and learn why fetching only necessary fields instead of nested data improves performance in realtime apps.
Create a flattened firebase data structure for a real-time swift app by modeling users and posts with unique ids, authorization data, timestamps, and simple, scalable relationships.
In this lecrature I will share with you all knowledge about Signup screens and the science behind it, how they work and why. We also will learn how to display a alertdialog to request the user a username in case he is Signup for the first time.
Create a new user node in Firebase by registering with a unique user id, storing username and online status under users/{uid}, and distinguishing sign-up from login.
Create a modal view controller to enter a message with a text field. Present it with the plus button and send to firebase for real-time distribution.
Pass data between table view and message controller with completion blocks, implement prepare for segue, and safely dismiss the view while sending messages to firebase.
Store each message in Firebase under a generated post ID inside the posts node, including message and sender ID, then validate data insertion and retrieval by user keys.
Use this section to let us know what do you think would make this app better, just post your comment in the discussion board!
Why do our courses have fewer students than most courses on Udemy - because we do NOT try to mislead our new students.
What to look for when buying a course on Udemy:
Take a tour in the course. Get to know your future instructor before making a decision. After all, it's your future on the line!
I am sure you will make the right choice so I will see you inside!
As applications get more and more complex, clients demand faster interaction. They want to receive a post, a notice, an event as soon as it happens. They want to know if a friend is online or offline in a chat application as soon as the other party changes their status. They want to know these things as soon as they happen, in other words, in Real-Time.
Implementing real time systems can be very costly, complicated, and time consuming. This is where Firebase comes into play to save the day.
Firebase starts with a FREE tier that can be used even in your commercial applications. It also comes with a very simple to use API that can be use for iOS (including Swift), Android, and JavaScript so you don't have to worry about compatibility. It also comes with a very easy to use dashboard web interface.
You will learn:
The qualifications I have that I believe will help me teach you?
What will you get from this course?
Who is the target audience?
What are the requirements?