Open deevus opened 1 year ago
i have the same problem. do we have any news on this?
I'm having the same issue and the background uploads are stopped/not working.
Same, I'm testing on Android 13 and this always fails
Could be related to new Android 12 changes: https://developer.android.com/about/versions/12/behavior-changes-12#performance
Apps that target Android 12 or higher can't start foreground services while running in the background, except for a few special cases. If an app attempts to start a foreground service while running in the background, an exception occurs (except for the few special cases).
Consider using WorkManager to schedule and start expedited work while your app runs in the background. To complete time-sensitive actions that the user requests, start foreground services within an exact alarm.
I am also getting this error occasionally on Android 13.
Does anyone have a workaround or patch for this?
Any Update on this we are also facing same issue?
As per title, our app is running on Android 12. Occasionally when trying to start an upload there will be a
RuntimeException
with the following stack trace:This exception is not handled by
react-native-background-upload
and an Upload ID is still returned fromstartUpload
. The upload therefore never starts or progresses.From https://github.com/gotev/android-upload-service#features-:
Any advice on how I can get around this issue?