UNPKG

@sfourdrinier/react-native-ble-plx

Version:
14 lines (13 loc) 554 B
import { type ConfigPlugin } from '@expo/config-plugins'; /** * Add foreground service permissions and service declaration to AndroidManifest.xml * * This enables background BLE operations on Android by: * 1. Adding FOREGROUND_SERVICE permission * 2. Adding FOREGROUND_SERVICE_CONNECTED_DEVICE permission (Android 14+) * 3. Declaring the BlePlxForegroundService in the manifest */ export declare const withBLEAndroidForegroundService: ConfigPlugin<{ enableAndroidForegroundService: boolean; }>; export default withBLEAndroidForegroundService;