Swift App not receiving callbacks on the onBroadcast(event:) for Broadcast on Database
I am not seeing any call back messages from real-time in my Hello, World swift app.
The app is able to connect and insert rows of data, but the onBroadcast callbacks are never triggered. I can following the channel from the dashboard and see the messages coming across. I can also use:
...and see the messages coming across. But at the same time, nothing on the onBroadcast callbacks.
1 Reply
Here is a discussion with @garyaustin from another therad: https://discord.com/channels/839993398554656828/1385316542970990693/1402316770676572263
This is Supabase 2.31.1.
Figured it out: channel.onBroadcast does not strongly hold the subscription. So, it was being dropped immediately and ultimately no listeners were registered.