You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
getPhotos on Android uses the PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE and will throw an error if this isn't granted. We had to update our app to use compileSdkVersion 33 which means getPhotos no longer works as READ_EXTERNAL_STORAGE no longer has an impact.
Note: Starting in API level 33, this permission has no effect. If your app accesses other apps' media files, request one or more of these permissions instead: [READ_MEDIA_IMAGES](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_IMAGES), [READ_MEDIA_VIDEO](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_VIDEO), [READ_MEDIA_AUDIO](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_AUDIO).
Dev environment info (please complete/provide the following information):
Package version (stream-chat-react-native/stream-chat-expo) - stream-chat-react-native
react-native or expo version - 5.11.2
Device/Emulator (android/ios) and OS version - Android 13 only (I think), Pixel 5 (only tested on this)
To Reproduce
Steps to reproduce the behavior:
Update build.gradle to use compileSdkVersion 33 within SampleApp
Boot Sample App on Android 13 device
Try to attach a photo
See Error or blank modal
Expected behavior
A clear and concise description of what you expected to happen.
Repeat above but see photos from camerroll
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
@aharwood9 There is no api to get the target SDK on runtime... So we are going to make it so that if react native 0.71 version is used then to use the new permissions..
Describe the bug
A clear and concise description of what the bug is.
getPhotos
on Android uses thePermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE
and will throw an error if this isn't granted. We had to update our app to use compileSdkVersion 33 which meansgetPhotos
no longer works asREAD_EXTERNAL_STORAGE
no longer has an impact.Here is a link from the Android docs -
Dev environment info (please complete/provide the following information):
To Reproduce
Steps to reproduce the behavior:
build.gradle
to use compileSdkVersion 33 within SampleAppExpected behavior
A clear and concise description of what you expected to happen.
Repeat above but see photos from camerroll
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: