# iOS : How to run the app in background

**URL:** <https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880>\
**Category:** iOS\
**Created:** [June 22, 2021, 10:33am UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880 "2021-06-22T10:33:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.9884843620](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vignesh.9884843620](https://devforum.zoom.us/u/vignesh.9884843620)\
**Post date:** [June 22, 2021, 10:33am UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880/1 "2021-06-22T10:33:43Z")

</div>

**Description**  
Hello Team,  
I have my iOS app using custom UI, when I minimize the app to the background, the app stops working. I have read about the background restrictions in the iOS app. When I use the zoom app, I can notice that the app runs in the background and the audio of the participants is clearly heard, can you please guide me on how to do this in my application.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 22, 2021, 10:06pm UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880/2 "2021-06-22T22:06:19Z")

</div>

Hey @vignesh.9884843620,

Thanks for using the dev forum!

You must add in background modes for your application

 ![Screen Shot 2021-06-22 at 4.04.32 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/c/1c7b3730638b05ec21d5890eb5a44b5c2827902c.png)

Then you have to call the MobileRTCAppDelegate functions within your AppDelegate:

```auto
- (void)applicationWillResignActive:(UIApplication *)application
{
    [[MobileRTC sharedRTC] appWillResignActive];
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    [[MobileRTC sharedRTC] appDidEnterBackgroud];
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    [[MobileRTC sharedRTC] appDidBecomeActive];
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    [[MobileRTC sharedRTC] appWillTerminate];
}

```

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vignesh.9884843620](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vignesh.9884843620](https://devforum.zoom.us/u/vignesh.9884843620)\
**Post date:** [June 23, 2021, 2:21pm UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880/3 "2021-06-23T14:21:23Z")

</div>

Hello @Michael_Condon ,  
Worked like a charm, thanks a lot.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 23, 2021, 7:46pm UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880/4 "2021-06-23T19:46:06Z")

</div>

Hey @vignesh.9884843620,

Awesome! I am happy to hear 🙂  
Please let us know if you run into any other issues.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 24, 2021, 5:46am UTC](https://devforum.zoom.us/t/ios-how-to-run-the-app-in-background/52880/5 "2021-07-24T05:46:35Z")

</div>

Closed on July 24, 2021, 5:46am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
