1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-14 01:16:17 +02:00

feat: android/swift slow metric info

This commit is contained in:
sjaanus 2024-10-08 13:24:25 +03:00
parent 74f1271178
commit 176ca02df1
No known key found for this signature in database
GPG Key ID: 20E007C0248BA7FF
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ class MainActivity : ComponentActivity() {
} }
} }
``` ```
**Info:** The Android SDK takes at least 60 seconds to post metrics to Unleash.
--- ---
--- ---

View File

@ -12,7 +12,6 @@ import UnleashProxyClientSwift
var unleash = UnleashProxyClientSwift.UnleashClient( var unleash = UnleashProxyClientSwift.UnleashClient(
unleashUrl: "<YOUR_API_URL>", unleashUrl: "<YOUR_API_URL>",
clientKey: "<YOUR_API_TOKEN>", // in production use environment variable clientKey: "<YOUR_API_TOKEN>", // in production use environment variable
refreshInterval: 5, // in production remove this or increase to >=5
appName: "unleash-onboarding-swift", appName: "unleash-onboarding-swift",
context: [:]) context: [:])
@ -22,3 +21,4 @@ Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in
print("Is enabled", unleash.isEnabled(name: "<YOUR_FLAG>")) print("Is enabled", unleash.isEnabled(name: "<YOUR_FLAG>"))
} }
``` ```
**Info:** The Swift SDK takes at least 60 seconds to post metrics to Unleash.