question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keeping scan even if I stopped service

See original GitHub issue

Expected behavior

Stopping scan and not detection

Actual behavior

After I call that lines

beaconManager.removeAllRangeNotifiers()
beaconManager.disableForegroundServiceScanning()

I still see that logs

D/BeaconParser: Processing pdu type FF: 0201***** with startIndex: 5, endIndex: 29
D/BeaconParser: This is a recognized beacon advertisement -- 02 15 seen
D/ScanHelper: Beacon packet detected for: id1: 7427**** id2: 10 id3: 7 with rssi -82
D/BeaconParser: Bytes are: 0201*****
D/ScanHelper: beacon detected : id1: 7427**** id2: 10 id3: 7
D/ScanHelper: looking for ranging region matches for this beacon
D/ScanHelper: matches ranging region: id1: null id2: null id3: null
D/RangeState: adding id1: 7427**** id2: 10 id3: 7 to existing range for: org.altbeacon.beacon.service.RangedBeacon@1fd3a03
D/ScanHelper: Beacon packet detected for: id1: 7427**** id2: 10 id3: 7 with rssi -82
D/ScanHelper: beacon detected : id1: 7427****: 10 id3: 7

Steps to reproduce this behavior

I’m definitely sure that services is not running after I stopped. I checked my working services under Developer options and I saw my services is not running. So, where does this logs come from? Additionally, I start stop service in twice, also logs goes twice.

I think when I stop the service, it’s keeping queue the scans and when I start again, I takes also stopped service events and fires multiple at 1100 seconds

Mobile device model and OS version

Samsung Galaxy J5 Prime- OS 8.0.0

Android Beacon Library version

2.15.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TayfunCesurcommented, Mar 23, 2019

Waow. Didn’t think that. Thank you so much @paulpv

1reaction
paulpvcommented, Mar 22, 2019

@TayfunCesur FYI, I have noticed that if you decorate your dependencies implementation lines with closures then gradle will not warn you that there is a new version available. If you comment out any decorating closure then gradle should warn you that there is a new version available. Seems like a weak sauce bug in Gradle. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Safety Check on iPhone works to keep you safe
If your personal safety is at risk, you can use Safety Check on iPhone to quickly stop all sharing and access, or easily...
Read more >
Stay protected with Windows Security - Microsoft Support
Schedule your own scan. Even though Windows Security is regularly scanning your device to keep it safe, you can also set when and...
Read more >
Qualys Vulnerability scan seems to shut down the TCP port ...
Qualys *loves* to scan some HTTP. It will spend hours testing a port if it thinks it's running HTTP, even if it's wrong....
Read more >
Fixed: Print Spooler Keeps Stopping on Windows 10
Solution #4: Restart the Print Spooler Service · Run Services: Press Windows key + R then type services.msc and press Enter. · Locate...
Read more >
Protecting Personal Information: A Guide for Business
In fact, don't even collect it. If you have a legitimate business need for the information, keep it only as long as it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found