Skip to main content

startAndroidBluetoothForegroundService

Starts the Android connected-device foreground service. Mount this alongside the BTProvider that owns the scan; the service keeps that app process alive while Android has the app in the background.

Kind: Function
Package: @ovok/native

Import​

import { startAndroidBluetoothForegroundService } from '@ovok/native/background-sync';

TypeScript signatures​

(options?: AndroidBluetoothForegroundServiceOptions): Promise<void>
ParameterTypeDetails
optionsAndroidBluetoothForegroundServiceOptions—

Returns: Promise<void>.

Learn the workflow​

Continue with Background Sync for the workflow context and examples.

Source​

View the declaration in the SDK source.