<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INAddMediaIntentResponseCode/handleInApp",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:@E@INAddMediaIntentResponseCode@INAddMediaIntentResponseCodeHandleInApp"
  },
  "title" : "INAddMediaIntentResponseCode.handleInApp"
}
-->

# INAddMediaIntentResponseCode.handleInApp

The system should launch the app in the background to handle the intent.

```
case handleInApp
```

## Discussion

Because the lifespan of an app extension is short, adding media should happen in your app, not in the Intents app extension. To handle adding media in your app while in the background, return [`INAddMediaIntentResponseCode.handleInApp`](/documentation/Intents/INAddMediaIntentResponseCode/handleInApp) as the response [`code`](/documentation/Intents/INAddMediaIntentResponse/code).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)