Comment on page
1.15.x -> 1.16.0
After upgrading to 1.16.0
- 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.
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
}
})
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 modified 2mo ago