Skip to content

Commit

Permalink
Kennyhu/add track once on permission (#387)
Browse files Browse the repository at this point in the history
* switch for branch change

* simplify

* add tracking if start track on init
  • Loading branch information
KennyHuRadar authored Aug 1, 2024
1 parent b982c93 commit 20430f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ internal class RadarActivityLifecycleCallbacks(
}

val sdkConfiguration = RadarSettings.getSdkConfiguration(activity.applicationContext)
if (sdkConfiguration.trackOnceOnAppOpen) {
if (sdkConfiguration.trackOnceOnAppOpen || sdkConfiguration.startTrackingOnInitialize) {
Radar.trackOnce()
}
}
})
} else {
val sdkConfiguration = RadarSettings.getSdkConfiguration(activity.applicationContext)
if (sdkConfiguration.trackOnceOnAppOpen) {
if (sdkConfiguration.trackOnceOnAppOpen || sdkConfiguration.startTrackingOnInitialize) {
Radar.trackOnce()
}
}
Expand Down

0 comments on commit 20430f0

Please sign in to comment.