# Background Process in TapTalk.io Omnichannel iOS

An application integrated with TapTalk.io Omnichannel iOS framework will keep executing some certain tasks even when the app is on the background if the conditions are met, this is done to make sure that the users' chat experience proceed smoothly. The background services will be automatically terminated once all the tasks are completed or reached a timeout. Please follow the following section to [enable background mode in your application](/onetalk-omnichannel-documentation/onetalk-channel-integration/live-chat/onetalk-ios/get-started-ios.md#step-4-enable-background-modes), The following are the processes that is required to run in the background:

### Pending Message Queue

Messages that the user is going to send are placed into a queue before they are sent to the server. If the app enters background when unsent messages exist in this queue, TapTalk.io services will keep running until all the pending messages are delivered to the server and all other tasks are completed.

### File Downloads

When a user-initiated file download from TapTalk.io Omnichannel iOS, such as file message or video message, is in progress, TapTalkLive will preserve the download progress even if the app is moved to background. The services will stop once all the file downloads and other tasks are finished.

### File Uploads

TapTalk.io Omnichannel iOS background process will also be kept running in background when user is sending messages with attachment, such as image, video, and file messages. The services will stop once all the file uploads and other tasks are finished.

####


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.taptalk.io/onetalk-omnichannel-documentation/onetalk-channel-integration/live-chat/onetalk-ios/background-process-in-taptalklive-ios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
