diff --git a/CHANGELOG.md b/CHANGELOG.md index d8e026b2..efbc0e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ Fixed: the file, and Swift cannot catch it. A file deleted after the caller checked it ended the app. `startUpload` now rejects instead, and a chunked part that cannot be enqueued journals an `error` with `errorKind: 'file'`. +- **Android 15+ no longer kills the app when the `dataSync` foreground-service + budget runs out.** Android gives `dataSync` services six hours per day in the + background, then calls `onTimeout` and expects the service to stop. + WorkManager 2.9 never answered, so the system threw + `ForegroundServiceDidNotStopInTimeException` and the process died mid-upload. + WorkManager 2.12 stops the timed-out workers itself. They re-run without + foreground priority until the user opens the app, which resets the budget. + Bumps `androidx.work` to 2.12.0 (minSdk 24). ## 9.0.0 diff --git a/android/build.gradle b/android/build.gradle index 591768ac..d155f4b5 100755 --- a/android/build.gradle +++ b/android/build.gradle @@ -46,7 +46,7 @@ dependencies { implementation 'com.facebook.react:react-android' implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.work:work-runtime-ktx:2.9.1' + implementation 'androidx.work:work-runtime-ktx:2.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.google.code.gson:gson:2.11.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1'