Skip to main content

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
ParameterTypeDetails
taskAndroidHealthConnectBackgroundTask—
taskNamestring—

Returns: void.

Learn the workflow​

Continue with Background Sync for the workflow context and examples.

Source​

View the declaration in the SDK source.