While testing the
"react-native-audio-recorder-player": "^3.5.3"
on Android 11 & 12 with targetSDKversion 31, I encountered the error message Error: sdcard/sound.mp3: open failed: EACCES (Permission denied)
.
Numerous suggested solutions have been attempted, such as adding the requestLegacyExternalStorage
permission to the AndroidManifest file and granting permission for MANAGE_EXTERNAL_STORAGE
. However, the error persists.
Lowering the targetSDKversion to 29 resolved the issue on Android 12, but this solution is not viable due to Play Store restrictions and performance issues.
How can I ensure that this feature operates correctly on Android 12 and above without reducing the TargetSDKversion?
Your assistance would be greatly appreciated.