unmute Favorite
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)
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let favorites = try await AFCore.shared.locations().unmuteFavorite(locationId: favorite.locationId)
showFavorites(favorites)
} catch {
showError(error)
}
}Content copied to clipboard
Return
The complete, post-mutation favorites list.
Parameters
location Id
Canonical location id.
Throws
if the request fails - 404 when the location is not muted.