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

# INPlayMediaIntentResponseCode.handleInApp

The system should launch the app in the background to play the media.

```
case handleInApp
```

## Discussion

Because the lifespan of an app extension is short, media playback should happen in your app, not in the Intents app extension. To handle media playback in your app while in the background, return [`INPlayMediaIntentResponseCode.handleInApp`](/documentation/Intents/INPlayMediaIntentResponseCode/handleInApp) as the response [`code`](/documentation/Intents/INPlayMediaIntentResponse/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)