Add opt-in authenticated HTTPS export of R1 health history

This commit is contained in:
Blendman974 committed 2026-11-07 23:15:29 +01:00
1 parent 6df52021c8
commit f0bb727a80
10 files changed
+348 -1

No files matched your search

+2
View File
@@ -1,3 +1,4 @@
import { startHealthExport } from "./health/health-export"
import { Application } from '@nativescript/core'
import { registerShareIntentHandler } from './native/share-intents'
import { installNativeUserAgent } from './util/http'
@@ -18,6 +19,7 @@ Application.on(Application.launchEvent, () => {
// they are closed would be lost if the process restarted first, so this keeps
// them reaching disk regardless. No-op when there is nothing new.
startLiveHealthSync()
startHealthExport()
// Collect from the ring on a wall-clock cadence (:01 and :31). Without this
// nothing drives a pull on a timer at all - only onRingReady() on reconnect -