Skip to content

Realtime Channel seems to go to sleep after a while (~15 minutes) in Flutter App #388

@upits

Description

@upits

Flutter app subscribed to Realtime channel stops receiving events after a while (~15 minutes). The app has to be closed and reopened then events will be received again (for a while ~15 minutes).
Subscription code:

supabaseClient.channel('public:tbl_name').on(
  RealtimeListenTypes.postgresChanges,
    ChannelFilter(
        event: 'UPDATE',
        schema: 'public',
        table: 'tbl_entry_queue'), (payload, [ref]) {
    payload.forEach((key, value) {
        if (key == 'new') {
            value.forEach((key2, value2) {
               // Processing code for "Payload"
           });
      }
   });
}).subscribe();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrealtimeThis issue or pull request is related to realtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions