skip to Main Content

I am developing a recording app in React Native. For that, I use expo-av. I’ve noticed recently that on Android 12 when a user picks up a call, the app keeps recording but when listening to it later, there is silence while the user was on the phone, but also after he hung up till the end of the recording. On older versions of Android, there is silence while the user was on a call, but it starts capturing audio again when he hangs up. Any idea how to fix that it keeps capturing audio after the user hangs up?

I am on expo 45, btw.

2

Answers


  1. Chosen as BEST ANSWER

    I am not 100% sure, but I've changed TARGET_SDK to version 31 (Android 12) and it seems to be working now.


  2. In new android version (>=12) permissions are changed. Please look at the here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search