launchdarkly / flutter-client-sdk

LaunchDarkly Client-side SDK for Flutter mobile applications
Other
15 stars 17 forks source link

feat: web based applications will now flush events before closing to ensure events are sent #129

Closed tanderson-ld closed 6 months ago

tanderson-ld commented 6 months ago

Requirements

Describe the solution you've provided

Created LDAppLifecycleListener and configured to use conditional imports. In the web case, uses an LDAppLifecycleListener that uses html document visibility. In the non-web case, uses the existing Flutter AppLifecycleListener. Note that the web based LDAppLifecycleListener only emits resume and hidden, no other events.

shortcut-integration[bot] commented 6 months ago

This pull request has been linked to Shortcut Story #232926: Flutter SDK should attempt to flush events, in the browser, when it detects signals a page will close..