Reteno SDK automatically tracks application lifecycle events.
Track AppLifecycle Events
Tracked events include:
ApplicationInstalledApplicationUpdatedApplicationOpenedApplicationBackgrounded
Track Push Subscription Events
Tracked events include:
PushNotificationsSubscribedPushNotificationsUnsubscribed
Track Session Events
Tracked events include:
SessionStartedSessionEnded
Expo Note
Lifecycle tracking options can be configured when using JavaScript-controlled initialization:
import Reteno from 'expo-reteno-sdk';
await Reteno.initialize({
apiKey: 'YOUR_SDK_ACCESS_KEY',
sessionDurationSeconds: 30,
lifecycleTrackingOptions: {
appLifecycleEnabled: true,
foregroundLifecycleEnabled: false,
pushSubscriptionEnabled: true,
sessionStartEventsEnabled: true,
sessionEndEventsEnabled: false,
},
});lifecycleTrackingOptions also accepts 'ALL' or 'NONE'.
To use these options, omit sdkAccessToken from the platform plugin config. If sdkAccessToken is set, the SDK initializes automatically with default options before JavaScript runs.
