---
title: requestToBecomeSystemPrimary()
framework: nowplaying
role: symbol
role_heading: Instance Method
path: nowplaying/mediasession/requesttobecomesystemprimary()
---

# requestToBecomeSystemPrimary()

Requests to make this session the primary system media session.

## Declaration

```swift
@MainActor func requestToBecomeSystemPrimary() async throws
```

## Mentioned in

Publishing media sessions

## Discussion

Discussion Use this method to request that the system display this session prominently on the Lock Screen and in Control Center. Your app’s primary session should match what your app is prominently displaying to the user in your interface. For example, if your app has two playing sessions and the user has indicated they want to focus on one of those sessions, call requestToBecomeSystemPrimary on that session. note: For local playback, calling this method isn’t required unless your app needs to take over as the system primary from another session. note: Calling this method doesn’t guarantee the system displays your session on the Lock Screen or in Control Center. note: Your app must be in the foreground when calling this method, otherwise this request doesn’t take effect. note: MediaSessionError.invalidState if the session can’t become application primary. MediaSessionError.internalFailure if the system couldn’t promote the session.
