How to keep the call alive when app is closed or killed?

Is there any way I can keep the call working when I close the app by removing it from recent tasks?

Like I am in the call and during the call I minimize it and then remove it from recent tasks as well, then the call will obviously get killed as well but how can I keep the call working in app closed or killed stage.

My friend has achieved it in kotlin by initiating call in android service that way when app is killed then the service keeps working and call keeps working as well.

How to do it in react-native?

Related discussion over here.
For future reference.

Hello @zaid.iqbal.softech @8BallBomBom
my issue is when call connect then app kill that time audio disconnect how to resolve this any idea or code ??

All depends how the app is killed and what version of Android you are using, not to mention the brand of device and their modifications.
Also Apple devices don’t exactly like you to have background services, so there are other methods to try and keep things going, best to do some research.

You can usually keep things active with background services on Android.
But that is not entirely flawless.
Some of that has been talked about in the other discussion ^