# Keeping application alive in background

**URL:** <https://react-native-webrtc.discourse.group/t/keeping-application-alive-in-background/444>\
**Category:** Help\
**Created:** [January 23, 2020, 5:12pm UTC](https://react-native-webrtc.discourse.group/t/keeping-application-alive-in-background/444 "2020-01-23T17:12:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![chevonc](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@chevonc](https://react-native-webrtc.discourse.group/u/chevonc)\
**Post date:** [January 29, 2020, 3:38pm UTC](https://react-native-webrtc.discourse.group/t/keeping-application-alive-in-background/444/7 "2020-01-29T15:38:26Z")

</div>

I have followed the same suggestions [here](https://react-native-webrtc.discourse.group/t/app-in-background-sound-disappears/43/26). In my case, the [socket.io](http://socket.io) connection is fine, but the webrtc ice connection gets disconnected. Specifically, the iceconnectionstate change event is fire and goes from connected -\> disconnected with 30s. This is while a foreground service is running. Any thoughts on why this would be the case?

---

_[View the full topic](https://react-native-webrtc.discourse.group/t/keeping-application-alive-in-background/444)._
