---
title: "channelManager(_:didActivate:)"
framework: pushtotalk
role: symbol
role_heading: Instance Method
path: "pushtotalk/ptchannelmanagerdelegate/channelmanager(_:didactivate:)"
---

# channelManager(_:didActivate:)

Tells the observer the audio session activated.

## Declaration

```swift
func channelManager(_ channelManager: PTChannelManager, didActivate audioSession: AVAudioSession)
```

## Parameters

- `channelManager`: The channel manager.
- `audioSession`: The audio session that activated.

## Mentioned in

Creating a Push to Talk app

## Discussion

Discussion Before recording and transmitting audio, wait for the framework to call this method. The framework calls the method when the audio session is active and set to the correct priority, and allows for recording audio even if the app is in the background. The framework doesn’t call the method if the channel transmission mode is PTTransmissionMode.fullDuplex, and already has an active audio session because it’s receiving audio from a remote participant when a transmission begins.

## See Also

### Activating and deactivating the audio session

- [channelManager(_:didDeactivate:)](pushtotalk/ptchannelmanagerdelegate/channelmanager(_:diddeactivate:).md)
