# 1.15.x -> 1.16.0

## Breaking Changes

### Framework affected: `Portal`

#### Changes to DeviceService API

* There were three ways to activate the device before release 1.16.0.
  1. `ACTIVATE`
  2. `ACTIVATE_LIMIT_ONE`
  3. `ACTIVATE_ONLY_IF_NO_ACTIVE_DEVICE`
* Currently 1.16.0 onwards there is only one way to activate the device.

#### Concrete Example

To activate the device using the versions **below** 1.16.0, one can use following snippet

```swift
let service = DeviceService(identity: identity)
service.activate(mode: .activate, then: { result in
    switch result {
    case: .success(_)
        // activation successful
    case: .failure(_)
        // failure error
    }
})
```

#### Concrete Example

To activate the device using the SDK versions 1.16.0 **and onwards**, one can use following snippet

```swift
let service = DeviceService(identity: identity)
service.activate(then: { result in
    switch result {
    case: .success(_)
        // activation successful
    case: .failure(_)
        // failure error
    }
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/migration-notes/ios/older-releases/1.15.x-greater-than-1.16.0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
