---
title: activate()
framework: watchconnectivity
role: symbol
role_heading: Instance Method
path: watchconnectivity/wcsession/activate()
---

# activate()

Activates the session asynchronously.

## Declaration

```swift
func activate()
```

## Discussion

Discussion This method executes asynchronously and calls the session(_:activationDidCompleteWith:error:) method of your delegate object upon completion. Call this method when your app is ready to communicate with its counterpart. Your cannot send or receive messages until you call this method. If the delegate property is nil, calling this method logs an error. In watchOS 2.1 and earlier, this method activates the session synchronously and always results in an active session.

## See Also

### Configuring the Session

- [delegate](watchconnectivity/wcsession/delegate.md)
- [activationState](watchconnectivity/wcsession/activationstate.md)
