Real-time data updates in iOS app with Firebase Firestore listeners | Firebase Bootcamp #16
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- Learn how to implement Listeners in Firebase Firestore for iOS apps. This video covers the basics of adding Listeners and demonstrates how to use them effectively. Improve your app's performance and user experience with this tutorial.
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
00:00 Firestore Listeners
05:56 Adding listeners
14:37 Attaching listener
16:51 Cancel Listeners
19:32 Listener diffing
22:21 Listening with Combine
29:21 Custom query extension
35:10 OnFirstAppear
40:13 Firestore Conclusion
Awesome! I love how you take your time to organize and write the code as good as possible, please keep up the great work you deserve the best.
Great work Nick. I think it is great learning incidental things, like making custom ViewModifiers, as it shows us real examples of when it is useful in our own apps.
For somebody who is following your playlists you are not going too difficult, this whole context of informations gives me much better understanding! Love your videos even more than Paul Hudsons (biggest swift achievement)
Your explanation of the lesson is perfect👍👍
I love your work nick.
Amazing bootcamp so far!!! Can't wait to use all these skills in my new projects 🔥
Love to hear that! Good luck 🚀🚀
Love this video! Looking forward to the chat app!
My man is on it again
Awesome work Nick! Thanks for making such amazing videos for us.
Thanks for watching!
Thanks, Nic!
Awesome 👏
You create incredible content. Thanks to you, I am learning SwiftUI and developing projects. I'd love to meet you.
This is awesome!!! if you continue with a chat app sample that would be great!! thanks
thank you, this was amazing, also my brain is exploding but it will pass
Thanks again for this excellent content. Your videos are a great source of information for developers and enthusiasts like myself.
Are you a full-time developer? I wonder how you find the time to create these videos.
Yea I am… which is why I don’t post as often as I want to 😅 but it’s not work if you enjoy it 🤙
Greattttt!! ❤ what’s coming after this firebase course?
Great work. I confused while add listener to other case, I trying to add listener to get all products but I don't succeed.
Do you have any videos outlining how to attach a listener/publisher to a record Detail View? This works well for record List Views where there is an array of records that get updated, but I am struggling to get the same setup to apply to my record Detail Views.
For example, a User clicks into one of the Favorite Record products and updates a status on it such as "Ordered". I would want the user to be able to see that the status got changed without having to leave the record Detail View and go back to the record List View (In my project, I have a PopUp on the record Detail View where the user can update the record status through an "updateStatus" function that calls out to Firebase and updates the specific record. However, I cant get the record Detail View to update in real time).
For my scenario, would you recommend just updating the variables locally on the record Detail View as when the User leaves the record Detail View and goes back to the record List View the values will be refreshed anyways? Wondering what the best practice is here.
Yo, nice video, helped up out a bunch!! Only question I have is how can I add pagination in with realtime updates? Been messing with it for a few hours with no joy at all. Any tips or pointers on this would be GREATLY appreciated. Keep up the good workman, hope it pays off for you.
You and me both! lol …. I’m going to hit him up discord because there’s very knowledgeable users that will probably know exactly how to achieve this
Awesome content Nick. Just curious - do you plan to cover Push Notifications using FCM later in the playlist?
FCM is being cancelled in a year
Is it possible to create a pagination with firestore listeners?
On ething I think is missing which would make this firebase collection complate would befirebase storage for images and/or video for a user. Like a profile picture for a user. Scenario like a friend document that links to an image so I can see my firends and their pictures. Any chance of showing the best way to handle that?
It’s coming up 👍
Hello Nick,
thank you so much for this great bootcamp, I’ve learned a lot! But there is one thing I didn’t figured out yet.
How can I combine the listeners with the pagination function?
For example I have a FeedView like Instagram or Twitter where I want to download only 20 posts at once (pagination) but also want to listen to the changes which a post owner can apply to his post.
What’s the best way to manage these case?
I think these are different functions. I would use a fetch request to fetch all the posts and maybe separately put a listener only on the user’s post while they are editing?
@@SwiftfulThinking Yeah I thought of something like this too, but it’s very complicated for Firestore Beginners.
Maybe you want to make a video course about a small Instagram / Twitter like app,
with a main FeedView of small posts, a DetailView where an user can edit his post
and maybe with like / unlike and follow / unfollow functions. Nothing special, no extra special functions and views.
I would definitely appreciate it!
Nevertheless keep going on with your great work and your absolute fantastic Bootcamps and App Build videos!
Is there an async/await version of Firestore listeners today?
nope
I asked this to Google Gemini and 'they' said that it is async aware as of Swift 5.5... 🤔
speak up
Why can’t you keep your videos under 20 minutes. These long lectures remind me of college, unrealistic af
Then I have the reverse problem, people commenting saying “can you explain X?” I’ve used Firebase for years and a shorter video would show how to implement a specific solution but wouldn’t teach the framework as a whole. If I was learning this from scratch, I’d want to learn the best way, not the fast way 🤙
You’re doing too much man. These long videos confuse the whole point of the video, which is to explore Firestore as a db