Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
fix: re-add logic for tracking lifecycle events (segmentio#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
prayansh authored May 26, 2021
1 parent fb34044 commit 92194f3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92194f3

Please sign in to comment.