Flutter App Lifecycle Events

Reteno SDK automatically tracks core application lifecycle events:

Event NamePropertiesDescription
ApplicationInstalledversion, buildThis event fires when a user opens the application for the first time right after installation
ApplicationUpdatedversion, build, previousVersion, previousBuildThis event fires when a user opens the application after updating the application
ApplicationOpenedfromBackgroundThis event fires when a user launches or foregrounds the application after the first open
ApplicationBackgroundedapplicationOpenedTime, secondsInForegroundThis event fires when a user backgrounds the application

Android

For Flutter integration, always use:

lifecycleTrackingOptions: LifecycleTrackingOptions.all()

This option enables automatic tracking of system lifecycle events.

📘

Note

On Android, lifecycle events are tracked automatically once this option is enabled.
For Flutter projects, LifecycleTrackingOptions.all() can be left enabled by default.

iOS

On iOS, lifecycle events are tracked automatically by Reteno SDK once the native SDK is initialized.

To enable this, call Reteno.start(...) in AppDelegate. No additional setup is required on the Flutter layer.