Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit f06a7fe

Browse files
MortimerGorobluemarvin
authored andcommitted
Call Telemetry.scheduleUpload() early (#1376)
1 parent 51d7f90 commit f06a7fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ public static void init(Context aContext) {
120120
public static void start() {
121121
TelemetryHolder.get().recordSessionStart();
122122
TelemetryEvent.create(Category.ACTION, Method.FOREGROUND, Object.APP).queue();
123+
// Call Telemetry.scheduleUpload() early.
124+
// See https://github.com/MozillaReality/FirefoxReality/issues/1353
125+
TelemetryHolder.get()
126+
.queuePing(TelemetryCorePingBuilder.TYPE)
127+
.queuePing(TelemetryMobileEventPingBuilder.TYPE)
128+
.scheduleUpload();
123129
}
124130

125131
@UiThread

0 commit comments

Comments
 (0)