Open mustafaskyer opened 3 years ago
hey @mustafaskyer did you find a solution to this?
Need to get RECORD_AUDIO permission before calling AudioRecord.init()
Need to get RECORD_AUDIO permission before calling AudioRecord.init()
already did post permission in AndroidManifest.xml
any solution now? I have same problem
I was getting the same issue because AudioRecord.init was being called before the permissions were being requested. I moved the init below permissions request and it worked.
@Sheharyar566 did you ask for the permission in react native like this?
export const checkMicrophone = async () => {
const result = await PermissionsAndroid.check(
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
);
return result;
};
if not what did you use? Can you share that
Thanks
this issue generated only on android, only at the first time, any suggestions about how to avoid this issue
code example below