registerAndroidHealthConnectBackgroundTask
Registers the JS entry point WorkManager invokes after process death. Call this once from the app entry point, not from a screen component, so it is registered before Android wakes the headless runtime.
Kind: Function
Package: @ovok/native
Import
import { registerAndroidHealthConnectBackgroundTask } from '@ovok/native/background-sync';
TypeScript signatures
(task: AndroidHealthConnectBackgroundTask, taskName?: string): void
| Parameter | Type | Details |
|---|---|---|
task | AndroidHealthConnectBackgroundTask | — |
taskName | string | — |
Returns: void.
Learn the workflow
Continue with Background Sync for the workflow context and examples.