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

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

Notify of
avatar

bat cave
Guest
bat cave
14 days 12 hours ago

great tutorial, I like the comments you write in xcode. it helps alot thanks

gefreestyle
Guest
gefreestyle
20 days 16 hours ago

is this tutorial still working for swift 3 and firebase (stand: 1.08.2017)?Thank you for your answer 🙂

CodeWithChris
Guest
CodeWithChris
20 days 16 hours ago

yup!

Jack Ngai
Guest
Jack Ngai
26 days 16 hours ago

Good tutorial, Chris. For those that are interested in removing the observer, here's the code.// Tested in Firebase 4 / Swift 3.02 override func viewDidDisappear(_ animated: Bool) { //Unwrap databaseHandle using optional binding if let databaseHandle = databaseHandle{ ref?.removeObserver(withHandle: databaseHandle) } }

lassu01
Guest
lassu01
1 month 12 days 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
2 months 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.
2 months 17 days ago

can i have the xcode proj

Angel Lopez
Guest
Angel Lopez
3 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
4 months 9 days ago

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

chandresh savsaviya
Guest
chandresh savsaviya
4 months 17 days ago

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

Bahadır Biten
Guest
Bahadır Biten
5 months 3 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
4 months 18 days ago

Thanks for helping others Bahadir!

1 2 3 4
wpDiscuz