proximity-sdk / com.estimote.proximity_sdk.api / ProximityObserverBuilder / withScannerInForegroundService

withScannerInForegroundService

fun withScannerInForegroundService(notification: Notification): ProximityObserverBuilder

Will make the observation process use scanner wrapped in a foreground service. This will display notification in the user's notifications bar, but will ensure that the scanning won't be killed by the system. Your scanning will be handled without any service by default.

Parameters

notification - notification object that will be displayed to the user throughout the scanning process.