flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Download is canceled when I close the app

Open pachecotatih opened this issue 9 months ago • 1 comments

in 1.11.8 version and flutter 3.24, I have the problem with initialize download, and when I close the app, the download is canceled. I'm testing on my device, it's used to android 14 and this problem is happen. Any solution? I know it's older version, but I can't updated actually

pachecotatih avatar Feb 27 '25 12:02 pachecotatih

abri o log do meu dispositivo e me deu o seguinte resultado: 02-27 15:03:51.889 19681 19750 D DownloadWorker: Update too frequently!!!!, but it is the final update, we should sleep a second to ensure the update call can be processed 02-27 15:03:51.894 1440 4549 W JobScheduler: Job didn't exist in JobStore: 96dd749 #u0a783/13 com.pequenosencantos.pequenos_encantos/androidx.work.impl.background.systemjob.SystemJobService 02-27 15:03:51.973 2623 2623 D StackScroller: getGlobalAnimationFinishedListener animation end 02-27 15:03:51.973 2623 2623 D StackScroller: onChildAnimationFinished clearTemporaryViews 02-27 15:03:51.982 2623 2623 D ActivatableNotificationView: startAppearAnim endcom.android.systemui.statusbar.notification.row.ActivatableNotificationView$2@5f3f588 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: Work [ id=b750b282-efe1-4f60-bfdb-6ff9567678c9, tags={ vn.hunghd.flutterdownloader.DownloadWorker, flutter_download_task } ] was cancelled 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: java.util.concurrent.CancellationException: Task was cancelled. 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1183) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:513) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:474) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:316) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 02-27 15:03:51.987 19681 19726 I WM-WorkerWrapper: at java.lang.Thread.run(Thread.java:1012) 02-27 15:03:52.041 1440 3624 D FreecessController: com.pequenosencantos.pequenos_encantos(10783) is important[18] 02-27 15:03:52.258 1440 11388 E TaskPersister: File error accessing recents directory (directory doesn't exist?). 02-27 15:03:52.466 704 704 D io_stats: !@ 8,0 r 49428058 1037295596 w 24531059 1155668824 d 6673661 1416207480 f 0 0 iot 32986904 0 th 0 0 0 pt 0 inp 0 0 726589.625 02-27 15:03:52.530 1088 19671 I HYPER-HAL: [ResourceManager.cpp]removeResource(): [CPUMinFreq] RemoveResource Request ID : 1072404 02-27 15:03:52.530 1088 19671 I HYPER-HAL: [RequestManager.cpp]releaseLocked(): Released ID : 1072404 02-27 15:03:52.555 19206 19207 I AidlLazyServiceRegistrar: Process has 0 (of 1 available) client(s) in use after notification artd has clients: 0 02-27 15:03:52.555 19206 19207 I AidlLazyServiceRegistrar: Trying to shut down the service. No clients in use for any service in process. 02-27 15:03:52.555 19206 19207 I AidlLazyServiceRegistrar: Unregistered all clients and exiting 02-27 15:03:52.665 19681 19742 I flutter : -1 02-27 15:03:52.673 19681 19742 I flutter : 25 02-27 15:03:52.673 19681 19742 I flutter : -1 02-27 15:03:52.889 19681 19750 D DownloadWorker: Update notification: {notificationId: 4, title: srta.-sofia-valencia-jr..txt, status: CANCELED, progress: -1} 02-27 15:03:52.892 19681 19750 I NotificationManager: com.pequenosencantos.pequenos_encantos: notify(4, null, Notification(channel=FLUTTER_DOWNLOADER_NOTIFICATION shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x18 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user 02-27 15:03:52.897 19681 19750 D DownloadWorker: Download canceled

pachecotatih avatar Feb 27 '25 18:02 pachecotatih