XITRIX / iTorrent

Torrent client for iOS 16+
2.04k stars 194 forks source link

File sharing server stops when the phone is idle #336

Open officiallor opened 1 month ago

officiallor commented 1 month ago

Tried uploading something to the phone using the file sharing feature and after some time, when the phone was idle the web server stopped.

XITRIX commented 1 month ago

File sharing could be used only if app is in foreground, it does not allow app to work in background. Otherwise iTorrent should constantly work in background which is malicious behaviour, because it will drain device's battery for nothing.

officiallor commented 1 month ago

It makes sense but it would be nice to have at least a notification that it will not work in background

XITRIX commented 1 month ago

Yes, but that mean that every time you close the app it will ring with notification, because app does not know if server is working or idle

Btw, I need to check if I can get this info from server, if yes, I could enable background for server if it is processing something until it will go idle