Mark read notification

TerraCore v0

Usage#

Mark a notification that has been read by user. Currently, this function only supports for logged-in users.

coroutineScope.launch {
val result = TerraNotification.getInstance(terraApp).markReadNotification(notificationId)
if (result.isSuccess()) {
// update the UI or do something based on your business logic
} else {
// handle error if needed
val errorMessage = result.exception().message
}
}