Skip to main content

Unregister user

Unregistering a user should be done when your user decides to log out and perhaps use your application as a guest, or when you no longer want the subsequent reports to be associated with the current user.

Unregistering is done by calling the Shake.unregisterUser method.

SettingsActivity.kt
private fun logOut() {
networkService.performLogOut(email, object: LogOutListener() {
@override
fun onLogOutSucceeded() {
Shake.unregisterUser()
handleLogOut()
}
@override
fun onLogOutFailed(message: String) {
// Handle failed log out
}
})
}