diff --git a/packages/core/android/src/main/java/com/segment/analytics/reactnative/core/RNAnalyticsModule.kt b/packages/core/android/src/main/java/com/segment/analytics/reactnative/core/RNAnalyticsModule.kt index 7a63aaf5c..cd3ce68c2 100644 --- a/packages/core/android/src/main/java/com/segment/analytics/reactnative/core/RNAnalyticsModule.kt +++ b/packages/core/android/src/main/java/com/segment/analytics/reactnative/core/RNAnalyticsModule.kt @@ -207,6 +207,12 @@ class RNAnalyticsModule(context: ReactApplicationContext): ReactContextBaseJavaM return promise.reject("E_SEGMENT_ERROR", e) } + // This is invoking the logic used to track lifecycle events when a RN app goes through a cold-boot + // This logic should not be deleted + if (options.getBoolean("trackAppLifecycleEvents")) { + this.trackApplicationLifecycleEvents(writeKey) + } + RNAnalytics.setupCallbacks(analytics) singletonJsonConfig = json