dvmatyun / web_socket

dart / flutter webSocket package with statuses and other features
https://pub.dev/packages/websocket_universal
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

How to continue connected to the server in the background? #6

Closed marciotisouza closed 1 year ago

marciotisouza commented 1 year ago

I have an application that transmits the location in the background, but then the websocket connection is closed, how to keep the server online?

Flutter 3.10.5

dvmatyun commented 1 year ago

That is not possible, not because of this package/library, Operating System won't allow that. You can try using Foreground Service (For android) and try to achieve your goal there (maybe even launch web socket connection there. Let me know if I can help you by improving my package somehow.

dvmatyun commented 1 year ago

Will close the issue in few days if no more questions left.