1.15.x -> 1.16.0

After upgrading to 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

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

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

Last updated