2

I'm using the following method from BLE scanner API on Android 8+ to scan for BLE Beacons

startScan(List<ScanFilter> filters, ScanSettings settings, 
PendingIntent callbackIntent)

The problem is that after sometimes I can see Scan Logs but nothing is delivered by the callbackIntent any idea why is this happening?

Metwalli
  • 1,861
  • 1
  • 18
  • 27

1 Answers1

2

This is the expected behavior on Android 8+. if you need to scan continuously a periodic mechanism is needed in this case. For more information about scanning on different Android versions and different ways. Have a look here

Metwalli
  • 1,861
  • 1
  • 18
  • 27
  • Well if you have a Foreground Service the restrictions you link to do not apply anymore. – Emil Mar 17 '19 at 14:10
  • As I said it is for background scanning. Not all use cases require a foreground service which was our case. – Metwalli Mar 17 '19 at 20:59