unmuteFavorite

abstract suspend fun unmuteFavorite(locationId: Long): List<FavoriteLocation>

Unmutes a favorite location - its notifications and automatic visits resume, and a running visit-detection session registers it again.

Use it to undo muteFavorite. A muted row reads LocationFavoriteType.MUTED in FavoriteLocation.favoriteType and isMuted = true on a map marker.

Android (Kotlin)

lifecycleScope.launch {
try {
val favorites = AFCore.locations().unmuteFavorite(locationId = favorite.locationId)
showFavorites(favorites)
} catch (t: Throwable) {
showError(t)
}
}

iOS (Swift)

Task {
do {
let favorites = try await AFCore.shared.locations().unmuteFavorite(locationId: favorite.locationId)
showFavorites(favorites)
} catch {
showError(error)
}
}

Return

The complete, post-mutation favorites list.

Parameters

locationId

Canonical location id.

Throws

if the request fails - 404 when the location is not muted.