Published on November 24, 2016 by CodeWithChris

Firebase Tutorial for iOS Apps
Lesson 7: Read Data from Firebase Database
In this lesson, you’ll learn how to retrieve your data from the Firebase database as well as how to update the data in your app in realtime!

This video series uses the latest and greatest from Apple (Xcode 8, Swift 3, iOS 10) and Google (Firebase) to create a messaging app with database features.

This series is intended for intermediate programmers or people who have gone through my Beginner series which can be found here:

How To Make An App (for beginners) – Start Here

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

Website: codewithchris.com

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 3, Xcode 8 and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (www.betterwithmusic.com/)

Leave a Reply

33 Comments on "Firebase Tutorial – Ep 7 – Read Data from Firebase Database"

Notify of
avatar

lassu01
Guest
lassu01
13 days 12 hours ago

There are many tutorials for reading data from Firebase Database but I am yet to find a tutorial that includes retrieving documents such as PDFs and viewing. Could you incorporate this info into this video also?

snck 03
Guest
snck 03
1 month 13 days ago

Some syntax for functions have changed for firebase so its bit confusing took a little time to understand nice tutorial though

iDev Shah Jugal R.
Guest
iDev Shah Jugal R.
1 month 18 days ago

can i have the xcode proj

Angel Lopez
Guest
Angel Lopez
2 months 25 days ago

Hi Chris, would you please help, I would like to export Core Data into a excel file, at the same time display file name in a table view and if user selected be able to send it via email, Thanks for your time, awesome tutorials

John Halley
Guest
John Halley
3 months 10 days ago

Is anyone else's data being duplicated when reopening the view?

chandresh savsaviya
Guest
chandresh savsaviya
3 months 18 days ago

Please show me how to delete posts from cells and also from database.

Bahadır Biten
Guest
Bahadır Biten
4 months 4 days ago

Hello Chris! Thanks for detailed explanations. IF anyone comes across with a problem where xcode cannot build due to undeclared FIRDatabase and FIRDatabaseReference issues, go to terminal and type "pod update" every time before you open the .xcworkspace. OR don't edit your pod file text using text editor which uses smart quotes and messes up your file each time. Try to use Sublime Text as Chris uses in his own machine.

CodeWithChris
Guest
CodeWithChris
3 months 19 days ago

Thanks for helping others Bahadir!

DR. Craig Curphey
Guest
DR. Craig Curphey
4 months 5 days ago
Hey Chris – I have been searching for documentation on what members or fields exist in the snapshot that appears in closures. I can print it at debug time, but I can't extract the individual fields. Here is what I am getting …po snapshotSnap (Equities) { tickerSymbol = init;then po snapshot.value▿ Optional<Any> ▿ some : 1 element ▿ 0 : 2 elements – .0 : tickerSymbol – .1 : initI want to access the fact that it contains "Equities". Then the 0th element in the dictionary, then the 1st item in the dictionary.Any suggestion?Thanks, Craig
Nathan Hacault
Guest
Nathan Hacault
4 months 13 days ago

I have been following you tutorial since part 1. I haven't had a problem until now. At the end of the video when you run the simulator it works fine for you. When I run it I get this error:libc++abi.dylib: terminating with uncaught exception of type NSExceptionCan you help?

Charles Leota
Guest
Charles Leota
4 months 17 days ago
Hi Chris, love the tutorial. Must admit you are very precise in what you are teaching. I do have a question tho. Can you tell me how to delete a message from the tableview please. I do know that you use the (UITableViewCellEditingStyle .delete) function to swipe the cell to bring up delete. However, how do i get a ref to that particular message and delete from the firebasedatabase please, so i can use the removeValue method on that reference and then use the reloadData() method to the tableview. Hope that makes sense. Once again, thanks for the tuts.. love… Read more »
1 2 3
wpDiscuz