-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The WRITE_EXTERNAL_STORAGE permission becomes useless in Android 10 #23
Comments
The current version is working well on Android 11. Tested it on my own Android 11 device. But I'm storing the files in the apps own directory and due to that it's not a problem for me. In Android 10 and above you don't need the WRITE_EXTERNAL_STORAGE anymore due to the scoped storage. But you're write. The permissons are not exactly ocrrect. The android:maxSDKVersion has to be a 29, so it still works for Android 10. |
I was targetting SDK 30 and no issues so far with How does this library interfere with file permissions? |
@cristianoccazinsp facing the same weird issue, were you able to fix it? |
Not really, I still see the crash from time to time, but doesn't seem to happen as often as to worry. |
I'm also facing the same issue, forbidding me from using this library instead of the original rn-fetch-blob. Using Target SDK Level 29, testing on Device with Android 11. Is there any workaround, other than staying on the unmaintained plugin? |
I published 0.13.8 right now. |
@RonRadtke I can confirm WRITE_EXTERNAL_STORAGE is NOT permanently denied anymore after the update. That bug is fixed |
@arunim2405 Glad to hear that! Thank you. |
react-native-blob-util: '0.13.2'
react-native: '0.61.2'
As of Nov 2020, all the android app published in the Google Play needs to set the targetSdkVersion to at least 29. The "android:maxSdkVersion" setting in the manifest makes the WRITE_EXTERNAL_STORAGE in the PermissionAndroid becomes useless in Android 10.
I have been taking a while to find that in my app mergedManifest. Finally, I added this:
tools:remove="android:maxSdkVersion"
to the permission WRITE_EXTERNAL_STORAGE.
I think it needs to be fixed. Meanwhile, and support Android 11 in future.
The text was updated successfully, but these errors were encountered: