Keep App Alive in Background.

Hello everyone,

I’m developing an app using Flutter. Users can establish a websocket connection in order to receive order requests from the server. However, when I lock the screen, the socket connection disconnects. I have Background Process and Background Fetch enabled through Xcode. Is there a way to keep the app alive even if it is in background? I only need the websocket connection to stay alive. Thank you!

Replies

Is there a way to keep the app alive even if it is in background?

Not if your only goal is to monitor a network connection.

Lemme start you out with iOS Background Execution Limits. Read that through and then post back here if you have specific follow-up questions.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"