PostHog / posthog-ios

PostHog iOS SDK
https://posthog.com/docs/libraries/ios
MIT License
32 stars 41 forks source link

Add throttling to certain application lifecycle events #47

Closed AnderGoig closed 1 year ago

AnderGoig commented 1 year ago

What does this PR do?

Adds a new applicationLifecycleEventsThrottleInterval config property, set to 15 min by default, which throttles the capture of some application lifecycle events, like "Application Opened" (from background) and "Application Backgrounded" (these events won't be captured unless 15 minutes have passed in between executions).

What are the relevant tickets?

https://github.com/trustwallet/ios/issues/5249