Skip to content

Commit

Permalink
Change sdk enabled logic to mimic android and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomatiasgomez committed Dec 5, 2024
1 parent 122601b commit 7080245
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ extension RemoteConfig: EmbraceConfigurable {

extension RemoteConfig {
func isEnabled(threshold: Float) -> Bool {
if (threshold <= 0 || threshold > 100) {
return false
}
return Self.isEnabled(hexValue: deviceIdHexValue, digits: Self.deviceIdUsedDigits, threshold: threshold)
}

Expand Down

0 comments on commit 7080245

Please sign in to comment.