Android-Proximity-SDK
Android-Proximity-SDK copied to clipboard
Scanner stops working after a while
Prerequisites
- [ ] Put an X between the brackets on this line if you have done all of the following:
- My beacons have Estimote Monitoring enabled (Check it in the Estimote Cloud, or via app)
- [x] My Android device/devices supports BLE and has Android OS version >= 5.0.0
- [x] My Android device/devices have bluetooth enabled
- [x] My app has Location Permissions granted
Basic information
Estimote SDK version: 1.0.5
Android devices affected: Samsung Galaxy S10
Android OS version affected: 10
Beacon hardware version: J1.9_B1.1
Description
When using a foreground Service the scanner can stop working. It will trigger an on exit and then after that nothing will happen anymore. The notification is still there saying it's scanning. This happens when you press the home button and leave it for a while, I managed to trigger this more quickly just after rebooting my phone then starting the app & scan.
I'm using the template for Proximity for Multiple Beacons & added a notification for the foreground service.
(Optional) Steps to reproduce:
- (Optional, might be quicker) Reboot phone
- Start Scanner with a foreground service
- Press home button (maybe lock phone even)
- An on enter should trigger
- After a while, without moving anything an exit should trigger
- Can not enter or leave other zones
Expected behavior: Scanning should continue without being interrupted
Actual behavior: Scanner triggers an exit zone and may never be able to enter it again.
Additional information
I noticed that when you have a second app with the same credentials, you start the scanner on that second app then the first might work again (for a while)
Might be related to https://github.com/Estimote/Android-Proximity-SDK/issues/89
+1 Same here, reproduced on many devices. any updates on this ?