1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00

feat: android/swift slow metric info (#8387)

Two corner cases, android and swift do not post metrics before default
time. Adding small info box for them.


![image](https://github.com/user-attachments/assets/cad643ba-cdb7-4585-aab3-02cd86f17c74)
This commit is contained in:
Jaanus Sellin 2024-10-08 13:37:00 +03:00 committed by GitHub
parent 3f9278be92
commit 787af6f0eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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(
unleashUrl: "<YOUR_API_URL>",
clientKey: "<YOUR_API_TOKEN>", // in production use environment variable
refreshInterval: 5, // in production remove this or increase to >=5
appName: "unleash-onboarding-swift",
context: [:])
@ -22,3 +21,4 @@ Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in
print("Is enabled", unleash.isEnabled(name: "<YOUR_FLAG>"))
}
```
**Info:** The Swift SDK takes at least 60 seconds to post metrics to Unleash.