record event for fetched ota update

This commit is contained in:
Hailey
2024-05-23 11:16:27 -07:00
parent f924465899
commit 4b49efe036
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -12,6 +12,7 @@ import {
import {logger} from '#/logger'
import {IS_TESTFLIGHT} from 'lib/app-info'
import {logEvent} from 'lib/statsig/statsig'
import {isIOS} from 'platform/detection'
const MINIMUM_MINIMIZE_TIME = 15 * 60e3
@@ -49,6 +50,7 @@ export function useOTAUpdates() {
if (res.isAvailable) {
logger.debug('Attempting to fetch update...')
await fetchUpdateAsync()
logEvent('update:fetched', {'update-id': res.manifest.id})
} else {
logger.debug('No update available.')
}
+3
View File
@@ -3,6 +3,9 @@ export type LogEvents = {
init: {
initMs: number
}
'update:fetched': {
'update-id': string
}
'account:loggedIn': {
logContext:
| 'LoginForm'