Android API 33 broke external storage permissions checks in AttachmentsPicker composable #4088
Replies: 3 comments 3 replies
-
Hey @SchramboVida ! OS 13 is right around the corner but unfortunately not widely available yet (only pixels from what I know). We already have investigated the changes there and are aware of media permission changes required for our picker to work. However, we cannot push a release out for API 33, because as SDK devs, that would force all of our users to have target SDK version set to 33, essentially making all users migrate to the latest API and having to update their code accordingly. I'll cc @adasiewiczr here, since it is available on pixels and we might have to shift our priorities, but I'm not 100% sure if it'll fall into the next release or the one after that! Thank you so much for bringing this up and helping us keep up to date! :] |
Beta Was this translation helpful? Give feedback.
-
This seems related, but if it's off-topic let me know and I'll create a new issue or discussion. In v5.10.0, the My understanding of this issue isn't deep, but it seems to me from these Android docs that once you're targeting Android 11, the Is my understanding here correct, or is it important to let Stream set |
Beta Was this translation helpful? Give feedback.
-
Hey @hustoj2 ! ccing @adasiewiczr. We've set our maxSDK version, not the target one. This means that our SDK is not yet targeting API 32/3 (Android 12 and up). This means we can use the Android SDK with that version to prepare the codebase, but at the same time not force our users (you! :D) to migrate. If your target and/or max SDK is lower (e.g. 29), then you should be fine and shouldn't have to migrate. There are changes to the permissions of storage, yes, and we've migrated our SDK to cover that in case of Android 12. But on lower versions, things should be consistent! |
Beta Was this translation helpful? Give feedback.
-
Android Stream SDK 5.8.1 used in an app that targets API 33 (through 21) so the manifest permissions regarding external storage look like this:
The
pickerTabContent(...)
composable inAttachmentsPickerImagesTabFactory
andAttachmentsPickerFilesTabFactory
requireManifest.permission.READ_EXTERNAL_STORAGE
which likeandroid.permission.WRITE_EXTERNAL_STORAGE
is never granted on API 33 and later OS versions.This prevents the user from selecting an existing image or file via the
io.getstream.chat.android.compose.ui.messages.attachments.AttachmentsPicker
composable; they can only use the camera and camcorder devices.Considering that OS 13 is right around the corner, are there plans to fix this in an upcoming release?
Beta Was this translation helpful? Give feedback.
All reactions