android-upload-service icon indicating copy to clipboard operation
android-upload-service copied to clipboard

Misleading Android 12 documentation

Open thomasttvo opened this issue 2 years ago • 3 comments

Android 5.0 (API 21) to Android 12 (API 31) support. Beware you cannot start uploads while your app is the background on Android 12 due to recent Service limitations

This part of the doc is misleading. The library does work when started from the background on Android 12 unless the main app or the library that imports it specifically sets targetSdkVersion to 31 and up.

Would also be great to add suggestions to work around the issue should the targetSdkVersion is 31+

thomasttvo avatar Aug 18 '22 20:08 thomasttvo

Hi @thomasttvo and thanks for the feedback!

The library does work when started from the background on Android 12 unless the main app or the library that imports it specifically sets targetSdkVersion to 31 and up.

That's true, I added an explanation.

Would also be great to add suggestions to work around the issue should the targetSdkVersion is 31+

The only option going forward is to migrate to WorkManager: https://github.com/gotev/android-upload-service/issues/610

gotev avatar Aug 19 '22 06:08 gotev

hello @gotev do you plan any support for android 12 ( targetSdk 31+) for background services,

best,

alkan.

AlkanV avatar Sep 02 '22 09:09 AlkanV

@AlkanV added a note which better explain Android 12 support status: https://github.com/gotev/android-upload-service/blob/master/README.md#features-

gotev avatar Sep 02 '22 11:09 gotev

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 02:11 stale[bot]