{"action":"created","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/506","repository_url":"https://api.github.com/repos/AltBeacon/android-beacon-library","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/506/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/506/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/506","id":226849008,"number":506,"title":"didRangeBeaconsInRegion stops Firing after 30 minutes","user":{"login":"fjserrano","id":18577557,"avatar_url":"https://avatars1.githubusercontent.com/u/18577557?v=3","gravatar_id":"","url":"https://api.github.com/users/fjserrano","html_url":"https://github.com/fjserrano","followers_url":"https://api.github.com/users/fjserrano/followers","following_url":"https://api.github.com/users/fjserrano/following{/other_user}","gists_url":"https://api.github.com/users/fjserrano/gists{/gist_id}","starred_url":"https://api.github.com/users/fjserrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjserrano/subscriptions","organizations_url":"https://api.github.com/users/fjserrano/orgs","repos_url":"https://api.github.com/users/fjserrano/repos","events_url":"https://api.github.com/users/fjserrano/events{/privacy}","received_events_url":"https://api.github.com/users/fjserrano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-05-07T10:51:54Z","updated_at":"2017-05-13T20:02:56Z","closed_at":null,"body":"### Expected behavior\r\n\r\nI run app. (The library is in service that control other things). Lock the screen and not touching phone anymore during 2 hours. The didRangeBeaconsInRegion event must firing every 2 second all the time.\r\n\r\n### Actual behavior\r\n\r\nWhen passed 30 minutes from start and I lock screen the didRangeBeaconsInRegion event not firing anymore. If touch the power button and iluminates the lock screen didRangeBeaconsInRegion firing again. If lock the screen again didRangeBeaconsInRegion stops firing again.\r\n\r\n### Steps to reproduce this behavior\r\n\r\n- Create APP or service with implements BeaconConsumer\r\n- Running APP or service and lock screen.\r\n- Not touch anymore the phone.\r\n- After 30 minutes from lock screen the didRangeBeaconsInRegion not firing anymore.\r\n\r\n### Mobile device model and OS version\r\n\r\nLG Nexus 5 - Android 7.1.1\r\n\r\n### Android Beacon Library version\r\n\r\ncompile 'org.altbeacon:android-beacon-library:2+'\r\n\r\n\r\nI test from different parameters and always obtain the same result.\r\n\r\nI test with:\r\nbeaconManager.setBackgroundScanPeriod(2000);\r\nbeaconManager.setBackgroundBetweenScanPeriod(2);\r\n\r\nWith:\r\nbeaconManager.setBackgroundBetweenScanPeriod(30000l);\r\n\r\nWith:\r\nbeaconManager.setAndroidLScanningDisabled(true);\r\n\r\nIn my APP I need to read beacons every 2 second or maximum 4 second. If I lost a beacon I need to notify the beacon lost.\r\n\r\nI reproduce the issue modifying the altbeacon app reference to test. I attach my log and the log of beacon reference app.\r\n\r\nIn my app the 30 minutes passed in the time \"05-06 21:04:36.320\"\r\nIn beacon reference app the 30 minutes passed in the time \"05-07 12:41:24.872\"\r\n\r\nI think that didRangeBeaconsInRegion not firing because the scanner is not running in background anymore, but I don't know why.\r\n\r\nI have the apps in the no optimized battery for doze mode. I tested forcing doze mode manually and always pass after 30 minutes from lock the screen, forcing or not forcing doze mode.\r\n\r\n[myapp30minutes1.txt](https://github.com/AltBeacon/android-beacon-library/files/981514/myapp30minutes1.txt)\r\n[appreference2.txt](https://github.com/AltBeacon/android-beacon-library/files/981515/appreference2.txt)\r\n\r\nThanks in advance for your support.\r\n\r\nIMPORTANT:  This forum is reserved for feature requests or reproducible bugs with the library itself.  If you need help with using the library with your project, please open a new question on StackOverflow.com.\r\n"},"comment":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/comments/301271504","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/506#issuecomment-301271504","issue_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/506","id":301271504,"user":{"login":"fjserrano","id":18577557,"avatar_url":"https://avatars1.githubusercontent.com/u/18577557?v=3","gravatar_id":"","url":"https://api.github.com/users/fjserrano","html_url":"https://github.com/fjserrano","followers_url":"https://api.github.com/users/fjserrano/followers","following_url":"https://api.github.com/users/fjserrano/following{/other_user}","gists_url":"https://api.github.com/users/fjserrano/gists{/gist_id}","starred_url":"https://api.github.com/users/fjserrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjserrano/subscriptions","organizations_url":"https://api.github.com/users/fjserrano/orgs","repos_url":"https://api.github.com/users/fjserrano/repos","events_url":"https://api.github.com/users/fjserrano/events{/privacy}","received_events_url":"https://api.github.com/users/fjserrano/received_events","type":"User","site_admin":false},"created_at":"2017-05-13T20:02:56Z","updated_at":"2017-05-13T20:02:56Z","body":"@davidgyoung with the version 2.11beta1 of library all is running fine. I will test more hours without touching the phone, and tomorrow i will test in a moto g. \r\n\r\nNext week i will test in a samsung prime with Android 5.0.1.\r\n\r\nWhen I have the results of different devices I put the results here.\r\n\r\nI think you are doing a great work with this library. If you need some help to test in differente devices or something, tell me and I can do it.\r\n\r\nBest Regards."}}
{"actor":{"display_login":"fjserrano"}}