mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02: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. 
This commit is contained in:
parent
3f9278be92
commit
787af6f0eb
@ -58,6 +58,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
ℹ️ **Info:** The Android SDK takes at least 60 seconds to post metrics to Unleash.
|
||||||
|
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user