Cannot write .aac file to AudioUtils.DocumentDirectoryPath on iOS using React-native-Audio


Hi Team,

I’m using React-native-audio ( to recored file on React-native. I’ve tried to build the example on the link above and it works both on simulator and real device.
But when I integrated with Jitsi-meet project, it only work when I build to the simulator but not the real device. I also check the React-native version, the config,… everything is the same.
I checked the filepath and I found that it will write an .acc file to the directory like: “file:///var/mobile/Containers/Data/Application/F26E9146-C909-49B7-9199-B4AE8D1FF56B/Documents/test.aac”.
On the simulator, the file could be wrote successful but the real device, it seemed the .acc file cannot be wrote, and I don’t know why.
Do you have any idea about this problem? Thank you guys so much