Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android api 24 background beacon monitoring does not work #43

Open
rozcan opened this issue Apr 12, 2017 · 1 comment
Open

Android api 24 background beacon monitoring does not work #43

rozcan opened this issue Apr 12, 2017 · 1 comment

Comments

@rozcan
Copy link

rozcan commented Apr 12, 2017

Hi, I've an app working stable on android 6.0 and 5.0, it detects beacons in region even if the app is killed. But when i install the application on Sony Z5 that has android N version, it only detects on foreground. Below is the logs when application is killed. Scan started but no detection occurs. Is there a known bug on api 24?

04-12 15:52:20.978 15256-15256/com.workzonemobile D/CycledLeScanner: starting a new scan cycle
04-12 15:52:20.981 15256-15274/com.workzonemobile D/BluetoothAdapter: STATE_ON
04-12 15:52:20.985 15256-15256/com.workzonemobile D/CycledLeScanner: starting a new bluetooth le scan
04-12 15:52:20.989 15256-15256/com.workzonemobile D/CycledLeScannerForLollipop: starting non-filtered scan in SCAN_MODE_LOW_LATENCY
04-12 15:52:20.990 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 10000 milliseconds
04-12 15:52:20.990 15256-15274/com.workzonemobile D/BluetoothAdapter: STATE_ON
04-12 15:52:20.994 15256-15268/com.workzonemobile D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5 mClientIf=0
04-12 15:52:20.994 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:20.994 15256-15256/com.workzonemobile D/CycledLeScanner: Scan started
04-12 15:52:22.024 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 8966 milliseconds
04-12 15:52:22.039 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:23.077 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 7912 milliseconds
04-12 15:52:23.083 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:24.124 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 6866 milliseconds
04-12 15:52:24.140 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:25.181 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 5809 milliseconds
04-12 15:52:25.199 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:26.240 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 4749 milliseconds
04-12 15:52:26.254 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:27.278 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 3712 milliseconds
04-12 15:52:27.286 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:28.327 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 2663 milliseconds
04-12 15:52:28.340 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:29.367 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 1623 milliseconds
04-12 15:52:29.385 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:30.418 15256-15256/com.workzonemobile D/CycledLeScanner: Waiting to stop scan cycle for another 572 milliseconds
04-12 15:52:30.434 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}
04-12 15:52:31.047 15256-15256/com.workzonemobile D/CycledLeScanner: Done with scan cycle
04-12 15:52:31.051 15256-15256/com.workzonemobile D/CycledLeScanner: stopping bluetooth le scan
04-12 15:52:31.051 15256-15256/com.workzonemobile D/CycledLeScannerForLollipop: Stopping scan
04-12 15:52:31.057 15256-15256/com.workzonemobile D/CycledLeScanner: Normalizing between scan period from 30000 to 29878
04-12 15:52:31.058 15256-15274/com.workzonemobile D/BluetoothAdapter: STATE_ON
04-12 15:52:31.060 15256-15256/com.workzonemobile D/CycledLeScannerForLollipop: This is Android L. Doing a filtered scan for the background.
04-12 15:52:31.062 15256-15256/com.workzonemobile D/CycledLeScannerForLollipop: starting filtered scan in SCAN_MODE_LOW_POWER
04-12 15:52:31.063 15256-15256/com.workzonemobile D/ScanFilterUtils: Set up a scan filter: BluetoothLeScanFilter [mDeviceName=null, mDeviceAddress=null, mUuid=null, mUuidMask=null, mServiceDataUuid=null, mServiceData=null, mServiceDataMask=null, mManufacturerId=76, mManufacturerData=[2, 21], mManufacturerDataMask=[-1, -1]]
04-12 15:52:31.064 15256-15274/com.workzonemobile D/BluetoothAdapter: STATE_ON
04-12 15:52:31.069 15256-15256/com.workzonemobile D/CycledLeScannerForLollipop: Waiting to start full Bluetooth scan for another 29878 milliseconds
04-12 15:52:31.070 15256-15269/com.workzonemobile D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5 mClientIf=0
04-12 15:52:31.075 15256-15256/com.workzonemobile D/CycledLeScanner: Set a wakeup alarm to go off in 300000 ms: PendingIntent{ff43481: android.os.BinderProxy@fbfd926}

@mdxs
Copy link

mdxs commented Jan 15, 2018

This is not a https://github.com/AltBeacon/spec specification question, please ask in the appropriate software oriented project if still a concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants