Android device went to sleep mode When uploading a large file.
At the time, Notify listeners of the event pause. Can't get the updates
How to handle this issue?
if you implement the uploader.acknowledgeEvent(eventId) function. it will help me to get the information.
Reference code:
https://www.npmjs.com/package/cordova-plugin-background-upload-put-s3

V Notifying listeners for event events
2025-01-28 14:21:15.093 7946-7946 Capacitor/Console com.sample.video I File: https://localhost/6346.ff2dd1b09439bb60.js - Line 1 - Msg: Upload progress: 65%
2025-01-28 14:21:15.296 1991-1991 NotificationService system_server E Muting recently noisy 0|com.sample.video|1234|null|10050
2025-01-28 14:21:15.485 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 67%, 72052736 of 106283496 bytes
2025-01-28 14:21:15.493 7946-7946 Capacitor/...aderPlugin com.sample.video V Notifying listeners for event events
2025-01-28 14:21:15.495 7946-7946 Capacitor/Console com.sample.video I File: https://localhost/6346.ff2dd1b09439bb60.js - Line 1 - Msg: Upload progress: 67%
2025-01-28 14:21:15.531 7946-8069 Capacitor/NetworkPlugin com.sample.video V Notifying listeners for event networkStatusChange
2025-01-28 14:21:15.877 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 69%, 74080256 of 106283496 bytes
2025-01-28 14:21:15.879 7946-7946 Capacitor/...aderPlugin com.sample.video V Notifying listeners for event events
2025-01-28 14:21:15.885 7946-7946 Capacitor/Console com.sample.video I File: https://localhost/6346.ff2dd1b09439bb60.js - Line 1 - Msg: Upload progress: 69%
2025-01-28 14:21:16.004 7946-7946 Capacitor/AppPlugin com.sample.video V Notifying listeners for event pause
2025-01-28 14:21:16.004 7946-7946 Capacitor/AppPlugin com.sample.video D No listeners found for event pause
2025-01-28 14:21:16.005 7946-7946 Capacitor com.sample.video D App paused
2025-01-28 14:21:16.088 1991-1991 NotificationService system_server E Muting recently noisy 0|com.sample.video|1234|null|10050
2025-01-28 14:21:16.168 7946-7946 Capacitor/AppPlugin com.sample.video D Firing change: false
2025-01-28 14:21:16.168 7946-7946 Capacitor/AppPlugin com.sample.video V Notifying listeners for event appStateChange
2025-01-28 14:21:16.168 7946-7946 Capacitor/AppPlugin com.sample.video D No listeners found for event appStateChange
2025-01-28 14:21:16.168 7946-7946 Capacitor com.sample.video D App stopped
2025-01-28 14:21:16.169 7946-7946 Capacitor com.sample.video D Saving instance state!
2025-01-28 14:21:16.169 7946-7946 Capacitor com.sample.video E Couldn't save last FilePicker's Plugin pickVideos call
2025-01-28 14:21:16.210 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 71%, 76394496 of 106283496 bytes
2025-01-28 14:21:16.223 7946-7946 MediaRouter com.sample.video W Ignoring invalid provider descriptor: null
2025-01-28 14:21:16.430 1991-1991 NotificationService system_server E Muting recently noisy 0|com.sample.video|1234|null|10050
2025-01-28 14:21:16.560 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 72%, 77504512 of 106283496 bytes
2025-01-28 14:21:17.072 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 74%, 79466496 of 106283496 bytes
2025-01-28 14:21:17.284 1991-1991 NotificationService system_server E Muting recently noisy 0|com.sample.video|1234|null|10050
2025-01-28 14:21:17.559 7946-8249 UploadService com.sample.video I UploadTask - (uploadId: bf960ca0-6831-4b6a-8c88-a5e5bb4bd728) - uploaded 76%, 81494016 of 106283496 bytes
Android device went to sleep mode When uploading a large file.
At the time, Notify listeners of the event pause. Can't get the updates
How to handle this issue?
if you implement the
uploader.acknowledgeEvent(eventId)function. it will help me to get the information.Reference code:
https://www.npmjs.com/package/cordova-plugin-background-upload-put-s3