Bug 1840315 – added telemetry to the splash screen data fetching

fenix/117.0
mike a 12 months ago committed by mergify[bot]
parent 438ec53a20
commit 23fe60edb9

@ -637,6 +637,27 @@ events:
tags:
- Search
splash_screen:
first_launch_extended:
type: event
description: |
The splash screen was shown for an extended period of time, providing more time
to download marketing and experiment data.
extra_keys:
data_fetched:
type: boolean
description: |
If the splash screen was closed due to data being fetched or due to the time running out.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1840315
data_reviews:
- https://github.com/mozilla-mobile/firefox-android/pull/2616
data_sensitivity:
- technical
notification_emails:
- android-probes@mozilla.com
expires: 126
onboarding:
syn_cfr_shown:
type: event

@ -84,6 +84,7 @@ import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.experiments.nimbus.initializeTooling
import org.mozilla.fenix.GleanMetrics.Events
import org.mozilla.fenix.GleanMetrics.Metrics
import org.mozilla.fenix.GleanMetrics.SplashScreen
import org.mozilla.fenix.GleanMetrics.StartOnHome
import org.mozilla.fenix.addons.AddonDetailsFragmentDirections
import org.mozilla.fenix.addons.AddonPermissionsDetailsFragmentDirections
@ -433,7 +434,13 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
splashScreen.setKeepOnScreenCondition {
val dataFetched = components.settings.utmParamsKnown &&
components.settings.nimbusExperimentsFetched
!maxDurationReached && !dataFetched
val keepOnScreen = !maxDurationReached && !dataFetched
if (!keepOnScreen) {
SplashScreen.firstLaunchExtended.record(
SplashScreen.FirstLaunchExtendedExtra(dataFetched = dataFetched),
)
}
keepOnScreen
}
MainScope().launch {
delay(timeMillis = delay)

Loading…
Cancel
Save