Skip to content

Deactivation

Filip Vašš edited this page Sep 4, 2023 · 4 revisions

Deactivation

Deactivation is a process of unpairing user's identity from activated application. During this process, account data will be removed from application. It can be done using deactivate methods for two types of deactivation:

  • offline - just delete account data from internal storage in CM SDK
  • online - notify CASE server that this instance should be deactivated

Online deactivation only notifies server that it should deactivate an instance in its database. Online deactivation does not include removing of an account from local CM SDK storage.

Android:

val account: CMAccount = ... // get account instance
val listener: CMDeactivateListener = ...
account.deactivateOnline(context, null, true, listener)

account.deactivateOffline(context)

iOS:

let account: Account = ...; // get account instance
account.deactivateOnline(applicationId: nil, forceDeactivation: true) { error in { /*...*/ }

account.deactivateOffline()

Let's move on to Unblocking

Clone this wiki locally