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

ความคิดเห็น • 41

  • @andresraigoza2082
    @andresraigoza2082 ปีที่แล้ว +1

    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.

  • @genowork9538
    @genowork9538 ปีที่แล้ว +2

    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.

  • @MaksimLA
    @MaksimLA 9 หลายเดือนก่อน

    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)

  • @AISecretss
    @AISecretss ปีที่แล้ว +2

    Your explanation of the lesson is perfect👍👍

  • @rasheed1andrew
    @rasheed1andrew ปีที่แล้ว

    I love your work nick.

  • @vojtechkalivoda8455
    @vojtechkalivoda8455 ปีที่แล้ว +1

    Amazing bootcamp so far!!! Can't wait to use all these skills in my new projects 🔥

  • @awu878
    @awu878 4 หลายเดือนก่อน

    Love this video! Looking forward to the chat app!

  • @nathandrake6722
    @nathandrake6722 ปีที่แล้ว

    My man is on it again

  • @kauekaj
    @kauekaj หลายเดือนก่อน

    Awesome work Nick! Thanks for making such amazing videos for us.

  • @dimaipatjj4392
    @dimaipatjj4392 หลายเดือนก่อน

    Thanks, Nic!

  • @kdtechniquesofficial6153
    @kdtechniquesofficial6153 ปีที่แล้ว

    Awesome 👏

  • @omerfarukozturk9720
    @omerfarukozturk9720 7 หลายเดือนก่อน

    You create incredible content. Thanks to you, I am learning SwiftUI and developing projects. I'd love to meet you.

  • @EmanNollase
    @EmanNollase ปีที่แล้ว

    This is awesome!!! if you continue with a chat app sample that would be great!! thanks

  • @Designguidetv
    @Designguidetv ปีที่แล้ว

    thank you, this was amazing, also my brain is exploding but it will pass

  • @reinaldof
    @reinaldof ปีที่แล้ว +2

    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.

    • @SwiftfulThinking
      @SwiftfulThinking  ปีที่แล้ว +3

      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 🤙

  • @amish-t8468
    @amish-t8468 ปีที่แล้ว

    Greattttt!! ❤ what’s coming after this firebase course?

  • @Alicode.97
    @Alicode.97 4 หลายเดือนก่อน

    Great work. I confused while add listener to other case, I trying to add listener to get all products but I don't succeed.

  • @BrEd-2400
    @BrEd-2400 20 วันที่ผ่านมา

    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.

  • @platformsixx
    @platformsixx 8 หลายเดือนก่อน

    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.

    • @30guarino
      @30guarino 6 หลายเดือนก่อน

      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

  • @caphis
    @caphis ปีที่แล้ว

    Awesome content Nick. Just curious - do you plan to cover Push Notifications using FCM later in the playlist?

    • @Designguidetv
      @Designguidetv ปีที่แล้ว

      FCM is being cancelled in a year

  • @user-tr2kt3tc5h
    @user-tr2kt3tc5h 7 หลายเดือนก่อน

    Is it possible to create a pagination with firestore listeners?

  • @lincolndickerson1293
    @lincolndickerson1293 ปีที่แล้ว +1

    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?

  • @minakurah7822
    @minakurah7822 11 หลายเดือนก่อน

    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?

    • @SwiftfulThinking
      @SwiftfulThinking  11 หลายเดือนก่อน +1

      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?

    • @minakurah7822
      @minakurah7822 11 หลายเดือนก่อน

      @@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!

  • @gibber1sh-c6w
    @gibber1sh-c6w 10 หลายเดือนก่อน

    Is there an async/await version of Firestore listeners today?

    • @30guarino
      @30guarino 10 หลายเดือนก่อน +1

      nope

    • @Dudadius
      @Dudadius 5 หลายเดือนก่อน

      I asked this to Google Gemini and 'they' said that it is async aware as of Swift 5.5... 🤔

  • @JB-pm9zm
    @JB-pm9zm ปีที่แล้ว

    speak up

  • @cinquain0
    @cinquain0 ปีที่แล้ว +1

    Why can’t you keep your videos under 20 minutes. These long lectures remind me of college, unrealistic af

    • @SwiftfulThinking
      @SwiftfulThinking  ปีที่แล้ว +5

      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 🤙

  • @cinquain0
    @cinquain0 ปีที่แล้ว

    You’re doing too much man. These long videos confuse the whole point of the video, which is to explore Firestore as a db