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

**URL:** <https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570>\
**Category:** Help\
**Created:** [June 16, 2022, 1:07pm UTC](https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570 "2022-06-16T13:07:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaid.iqbal.softech](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaid.iqbal.softech](https://react-native-webrtc.discourse.group/u/zaid.iqbal.softech)\
**Post date:** [June 16, 2022, 1:07pm UTC](https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570/1 "2022-06-16T13:07:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![8BallBomBom](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/8ballbombom/32/710_2.png) [@8BallBomBom](https://react-native-webrtc.discourse.group/u/8BallBomBom)\
**Post date:** [June 16, 2022, 6:19pm UTC](https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570/2 "2022-06-16T18:19:16Z")

</div>

Related discussion over [here](https://github.com/react-native-webrtc/react-native-webrtc/issues/1162).  
For future reference.

---

<div class="post-metadata">

**Author:** ![Mit-rudani](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/mit-rudani/32/885_2.png) [@Mit-rudani](https://react-native-webrtc.discourse.group/u/Mit-rudani)\
**Post date:** [June 5, 2025, 12:52pm UTC](https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570/4 "2025-06-05T12:52:36Z")

</div>

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 ??

---

<div class="post-metadata">

**Author:** ![8BallBomBom](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/8ballbombom/32/710_2.png) [@8BallBomBom](https://react-native-webrtc.discourse.group/u/8BallBomBom)\
**Post date:** [June 27, 2025, 9:38pm UTC](https://react-native-webrtc.discourse.group/t/how-to-keep-the-call-alive-when-app-is-closed-or-killed/1570/5 "2025-06-27T21:38:48Z")

</div>

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 ^
