Supabase Realtime (How to subscribe to real time changes in Flutterflow)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • Supabase Realtime allows us to stream real time database changes to our Flutterflow applications.
    This functionality can be useful for a number of use cases such as chat apps, booking apps, live updates, sports scores etc. Any application you can think of that requires the data to be updated live from the database will benefit from Supabase Realtime.
    The example we are using in the video is subscribing to INSERT operations for the messages table in a simple group chat application. The example in the video returns one update, however there are instructions on the link below to continue listening and updating.
    The functionality isn't too difficult to get the hang of it and the code used in the video can be copied from the link below.
    rapidmvp.co/su...

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

  • @MySynalex
    @MySynalex 24 วันที่ผ่านมา

    Many Thanks! Can you please also post the method for unsubscribe from the subscribed realtime channel?

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

    Hi. Really appreciate this nice tutorial.
    I have a question though.
    When users go to the chat page, the app reads from the database and displays the chat messages. Users are also getting the real-time messages while on the chat page.
    Is there a way you can cache the messages so that the chat page does not always have to keep fetching data from the database each time someone lands on the chat page, and only updates the chat page when:
    1) on page load, there is a new message compared to cached data
    2) while on chat page, there is an update to the chat messages.
    I believe you covered number 2 but it is possible to incorporate caching too? Thank you.

  • @stivenramirez7597
    @stivenramirez7597 3 หลายเดือนก่อน +1

    I really like your videos thanks so much, is it possible to make a tutorial how to link supabase and stripe to manage subscriptions.

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

      There is a video on the channel they does this with stripe payment links and foreign data wrappers in supabase

  • @JuanPerez-vv5lk
    @JuanPerez-vv5lk 3 หลายเดือนก่อน

    I like your tutorials but please improve your audio quality.

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

      Thanks. I’m working on it. I think it’s improved a bit recently, but still trying to get the levels right.

  • @onedayapp3534
    @onedayapp3534 3 หลายเดือนก่อน +1

    Great video as always! Do you know how to get push notification of the new message? (When you are outside the chat)

    • @rapidmvp
      @rapidmvp  3 หลายเดือนก่อน +1

      Push notifications are on the list and will sort soon.

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

      @@rapidmvp that is great!

  • @jaguarconsultoriadigital8147
    @jaguarconsultoriadigital8147 3 หลายเดือนก่อน +1

    This action only updates once.
    Then, if you create new records, it does not update.

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

      What do you mean exactly?

    • @rapidmvp
      @rapidmvp  3 หลายเดือนก่อน +1

      Apologies I missed explaining that one. I’ve put an update on the link that will listen continuously.

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

    I know not related to this video but was hoping you can help. I have a function that calls a function that calls an api. I set an rpc in FF but it throws an error “ permission denied for schema vault”, function works in sql editor but not through rpc. I made a different function that performs something different to the same api using the same code and it works in sql and through rpc. I can’t figure out why? Thank you in advance.

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

      The function that calls the vault probably needs to be a security defined. Permission denied so I’d check that first

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

      @@rapidmvp can you please make a video about this on how to operate Supabase with FF in a secure way. What type of security Definer and what search path is best to set up a function?. Thank you for the reply and the content.