After signing in to an app using an ID, the user can sign out of the ID as needed. After the user signs out, the app will notify the account SDK to clear the user's ID information.
Device Type | OS Version | HMS Core (APK) Version |
|---|---|---|
Phone, tablet, HUAWEI Vision, and telematics device | EMUI 3.0 or later and Android 4.4 or later | 4.0.0.300 or later |

The process is described as follows:
The key steps for developing the sign-out function are as follows:
Java
Task<Void> signOutTask = service.signOut(); Kotlin
val signOutTask = service.signOut() Java
signOutTask.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
// Processing after the sign-out.
Log.i(TAG, "signOut complete");
}
}); Kotlin
signOutTask.addOnCompleteListener { it ->
// Processing after the sign-out.
Log.i(TAG, "signOut complete")
}