Download stops, when app is in background
Downloads stop as soon as the app is no longer in the foreground.
Android 10 Samsung Galaxy XCover 4s ZAPP 3.6.1
Thank you for reporting! I'll try to reproduce this on different devices.
I cannot reproduce this on my devices (Galaxy S7, Android 7 & Poco F1, Android 11). Is anyone else able to reproduce this issue?
@WebworkrNet Is it possible your device has any power saving option enabled that might interfere with the downloads?
The screenshot shows the current settings. I will turn off the optimization and test again.

@WebworkrNet Thanks for your feedback. As background activity is allowed, the download should work just fine... It is the same setting as on my device.
Ignoring the battery optimization does not bring any improvement.
@WebworkrNet Thanks for checking that! I'll try to reproduce this issue on an emulator so I am able to fix it.
If anyone else experiences issues with stopped downloads, please leave a comment!
Only briefly displayed PUSH error message: "Connection timed out".
This bug is only reproducable in release builds and seems to be caused by minifyEnabled true in the manifest. A very dirty quick fix may be to disable minifying - which I want to avoid.
Stacktrace
java.io.IOException: write failed: EBADF (Bad file descriptor)
at libcore.io.IoBridge.write(IoBridge.java:540)
at java.io.FileOutputStream.write(FileOutputStream.java:398)
at o5.x$a.d(StorageResolverHelper.kt:37)
at h5.f.m(SequentialFileDownloaderImpl.kt:236)
at h5.f.run(SequentialFileDownloaderImpl.kt:128)
at h5.c$a.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: android.system.ErrnoException: write failed: EBADF (Bad file descriptor)
at libcore.io.Linux.writeBytes(Native Method)
at libcore.io.Linux.write(Linux.java:293)
at libcore.io.ForwardingOs.write(ForwardingOs.java:240)
at libcore.io.BlockGuardOs.write(BlockGuardOs.java:418)
at libcore.io.ForwardingOs.write(ForwardingOs.java:240)
at libcore.io.IoBridge.write(IoBridge.java:535)
at java.io.FileOutputStream.write(FileOutputStream.java:398)
at o5.x$a.d(StorageResolverHelper.kt:37)
at h5.f.m(SequentialFileDownloaderImpl.kt:236)
at h5.f.run(SequentialFileDownloaderImpl.kt:128)
at h5.c$a.run(DownloadManagerImpl.kt:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
It does happen with the same stacktrace when the app is in foreground too, but after a much longer time period.
Probably the same issue as https://github.com/tonyofrancis/Fetch/issues/594
This should be fixed in v5.0.1. I'll leave this issue open until I can verify on a breader user basis.
Sorry, but I can't confirm, that the problem is fixed.
Device: Samsung Galaxy XCover 4s (SM-G398FN) Operating System: Android 11 Zapp: 5.0.2
Nice, I can't reproduce this with my devices :( Judging from other user feedback, this issue is fixed for most users. But "this issue" may in fact be multiple issues - I cannot tell right now.
I will keep an eye on it and report back.
Sorry, but I can't confirm, that the problem is fixed.
Device: Samsung Galaxy XCover 4s (SM-G398FN) Operating System: Android 11 Zapp: 7.0.3
Please, reopen the ticket. Thanks
An exception is when a live stream is playing in the background at the same time and the screen is then locked by the system (https://github.com/mediathekview/zapp/issues/241). Then the error does not occur.
Sound like the app gets killed. I suspect the download service.
The error continues on my new smartphone:
Samsung Galaxy A13 5G (SM-A136B/DSN) Android 12 Zapp 7.0.4 (61)
An exception is when a live stream is playing in the background at the same time and the screen is then locked by the system (https://github.com/mediathekview/zapp/issues/241). Then the error does not occur.
This is correct.