LiveQuery lost connection in background

When I use a live query and my app go-to the background for a little time and back for foreground, I do not receive more updates from live query.

In this case, what’s the better solution for solve this problem?
Do I need a specific treatment for this?

May have something to do with Starscream which is used for the live query connections. I recommend looking for solutions on that repo for a solution.

You should also be sure to request the proper background permissions from the user.

https://www.hackingwithswift.com/example-code/system/how-to-run-code-when-your-app-is-terminated

1 Like

Hey! did you ever figure this out? I’m having this issue now. Thanks!