{"action":"opened","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library-reference/issues/49","repository_url":"https://api.github.com/repos/AltBeacon/android-beacon-library-reference","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library-reference/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library-reference/issues/49/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library-reference/issues/49/events","html_url":"https://github.com/AltBeacon/android-beacon-library-reference/issues/49","id":354072469,"node_id":"MDU6SXNzdWUzNTQwNzI0Njk=","number":49,"title":"Reference application does not wake up App in the background","user":{"login":"giladrom","id":31113378,"node_id":"MDQ6VXNlcjMxMTEzMzc4","avatar_url":"https://avatars2.githubusercontent.com/u/31113378?v=4","gravatar_id":"","url":"https://api.github.com/users/giladrom","html_url":"https://github.com/giladrom","followers_url":"https://api.github.com/users/giladrom/followers","following_url":"https://api.github.com/users/giladrom/following{/other_user}","gists_url":"https://api.github.com/users/giladrom/gists{/gist_id}","starred_url":"https://api.github.com/users/giladrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giladrom/subscriptions","organizations_url":"https://api.github.com/users/giladrom/orgs","repos_url":"https://api.github.com/users/giladrom/repos","events_url":"https://api.github.com/users/giladrom/events{/privacy}","received_events_url":"https://api.github.com/users/giladrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-26T07:11:11Z","updated_at":"2018-08-26T07:11:11Z","closed_at":null,"author_association":"NONE","body":"Monitoring/Ranging works great in the foreground. However, when the app is killed and the subsequent scans are performed, the app does not seem to wake up even tho beacons are present.\r\n\r\nI have set \r\n```\r\nbeaconManager.setRegionStatePersistenceEnabled(false);\r\n```\r\n\r\nto make sure I can test background discovery without having to remove the beacons/change regions.\r\n\r\nHere's the relevant log output:\r\n\r\n```\r\n08-25 23:53:46.674 1763-1831/? I/ActivityManager: Start proc 10533:com.radiusnetworks.locate/u0a126 for broadcast com.radiusnetworks.locate/org.altbeacon.beacon.startup.StartupBroadcastReceiver\r\n08-25 23:53:46.761 10533-10533/? D/AppSettings: getting pref_beacon_parser_0_name\r\n08-25 23:53:46.767 10533-10533/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:53:46.769 10533-10533/? D/AppSettings: getting pref_beacon_parser_0_name\r\n08-25 23:53:46.770 10533-10533/? D/BeaconParser: Parsing beacon layout: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-25 23:53:46.771 10533-10533/? D/LocateApplication: looking for beacons matching expression: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-25 23:53:46.771 10533-10533/? D/AppSettings: getting pref_beacon_parser_1_name\r\n    Got :AltBeacon\r\n08-25 23:53:46.771 10533-10533/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:53:46.772 10533-10533/? D/LocateApplication: looking for beacons matching expression: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:53:46.772 10533-10533/? D/AppSettings: getting pref_beacon_parser_2_name\r\n    Got :Eddystone-EID\r\n08-25 23:53:46.772 10533-10533/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=30,p:3-3:-41,i:4-11\r\n08-25 23:53:46.773 10533-10533/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=30,p:3-3:-41,i:4-11\r\n08-25 23:53:46.773 10533-10533/? D/AppSettings: getting pref_beacon_parser_3_name\r\n    Got :Eddystone-UID\r\n08-25 23:53:46.773 10533-10533/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19\r\n08-25 23:53:46.774 10533-10533/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19\r\n08-25 23:53:46.774 10533-10533/? D/AppSettings: getting pref_beacon_parser_4_name\r\n    Got :Eddystone-TLM\r\n08-25 23:53:46.775 10533-10533/? D/BeaconParser: Parsing beacon layout: x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15\r\n08-25 23:53:46.776 10533-10533/? D/LocateApplication: looking for beacons matching expression: x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15\r\n08-25 23:53:46.776 10533-10533/? D/AppSettings: getting pref_beacon_parser_5_name\r\n    Got :Eddystone-URL\r\n08-25 23:53:46.776 10533-10533/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-21v\r\n08-25 23:53:46.777 10533-10533/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-21v\r\n08-25 23:53:46.777 10533-10533/? D/AppSettings: getting pref_beacon_parser_0_name\r\n    Got :iBeacon\r\n08-25 23:54:46.848 1763-1917/? D/AlarmManager: sending alarm to uid=1000, package=android, listener=android.app.AlarmManager$ListenerWrapper@8a34905, listenerTag=*job.delay*, t=2, cnt=1, w=21746929, Int=0, ws=WorkSource{10062 org.altbeacon.beaconreference}\r\n08-25 23:54:46.850 1763-1917/? D/PMS: acquireWL(ca3cd5a): PARTIAL_WAKE_LOCK  *alarm* 0x1 1763 1000 WorkSource{10062 org.altbeacon.beaconreference}\r\n08-25 23:54:46.943 1763-1763/? I/ActivityManager: Start proc 10579:org.altbeacon.beaconreference/u0a62 for service org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob\r\n08-25 23:54:47.107 10579-10579/? I/BeaconManager: BeaconManager started up on pid 10579 named 'org.altbeacon.beaconreference' for application package 'org.altbeacon.beaconreference'.  isMainProcess=true\r\n08-25 23:54:47.114 10579-10579/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:54:47.119 10579-10579/? D/BeaconParser: Parsing beacon layout: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-25 23:54:47.122 10579-10579/? D/BeaconReferenceApp: setting up background monitoring for beacons and power saving\r\n08-25 23:54:47.224 10579-10579/? I/ScanJob: Using immediateScanJobId from manifest: 208352939\r\n08-25 23:54:47.227 10579-10579/? I/ScanJob: Using periodicScanJobId from manifest: 208352940\r\n08-25 23:54:47.275 1763-1917/? D/AlarmManager: sending alarm to uid=1000, package=android, listener=android.app.AlarmManager$ListenerWrapper@8fac544, listenerTag=*job.delay*, t=2, cnt=1, w=21792702, Int=0, ws=WorkSource{10062 org.altbeacon.beaconreference}\r\n08-25 23:54:47.280 10579-10579/? I/ScanJob: Using immediateScanJobId from manifest: 208352939\r\n08-25 23:54:47.283 10579-10579/? I/ScanJob: Using periodicScanJobId from manifest: 208352940\r\n08-25 23:54:47.289 1763-1763/? D/PMS: acquireWL(e80f1b0): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 1763 1000 WorkSource{10062}\r\n08-25 23:54:47.290 1763-1763/? D/PMS: releaseWL(e80f1b0): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 WorkSource{10062} 0x0\r\n    acquireWL(4aab829): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 1763 1000 WorkSource{10062}\r\n08-25 23:54:47.291 1763-1763/? D/PMS: releaseWL(4aab829): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 WorkSource{10062} 0x0\r\n08-25 23:57:13.443 1763-2860/? I/ActivityManager: Killing 10579:org.altbeacon.beaconreference/u0a62 (adj 906): empty #17\r\n08-25 23:59:20.974 1763-1831/? I/ActivityManager: Start proc 11852:com.radiusnetworks.locate/u0a126 for broadcast com.radiusnetworks.locate/org.altbeacon.beacon.startup.StartupBroadcastReceiver\r\n08-25 23:59:21.083 11852-11852/? D/AppSettings: getting pref_beacon_parser_0_name\r\n08-25 23:59:21.091 11852-11852/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:59:21.094 11852-11852/? D/AppSettings: getting pref_beacon_parser_0_name\r\n    Got :iBeacon\r\n08-25 23:59:21.094 11852-11852/? D/BeaconParser: Parsing beacon layout: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-25 23:59:21.096 11852-11852/? D/LocateApplication: looking for beacons matching expression: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-25 23:59:21.096 11852-11852/? D/AppSettings: getting pref_beacon_parser_1_name\r\n    Got :AltBeacon\r\n08-25 23:59:21.097 11852-11852/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:59:21.098 11852-11852/? D/LocateApplication: looking for beacons matching expression: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-25 23:59:21.098 11852-11852/? D/AppSettings: getting pref_beacon_parser_2_name\r\n    Got :Eddystone-EID\r\n08-25 23:59:21.098 11852-11852/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=30,p:3-3:-41,i:4-11\r\n08-25 23:59:21.099 11852-11852/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=30,p:3-3:-41,i:4-11\r\n08-25 23:59:21.100 11852-11852/? D/AppSettings: getting pref_beacon_parser_3_name\r\n    Got :Eddystone-UID\r\n08-25 23:59:21.100 11852-11852/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19\r\n08-25 23:59:21.102 11852-11852/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19\r\n08-25 23:59:21.103 11852-11852/? D/AppSettings: getting pref_beacon_parser_4_name\r\n08-25 23:59:21.104 11852-11852/? D/BeaconParser: Parsing beacon layout: x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15\r\n08-25 23:59:21.107 11852-11852/? D/LocateApplication: looking for beacons matching expression: x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15\r\n08-25 23:59:21.107 11852-11852/? D/AppSettings: getting pref_beacon_parser_5_name\r\n    Got :Eddystone-URL\r\n08-25 23:59:21.108 11852-11852/? D/BeaconParser: Parsing beacon layout: s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-21v\r\n08-25 23:59:21.108 11852-11852/? D/LocateApplication: looking for beacons matching expression: s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-21v\r\n08-25 23:59:21.109 11852-11852/? D/AppSettings: getting pref_beacon_parser_0_name\r\n    Got :iBeacon\r\n08-26 00:04:54.654 1763-1917/? D/AlarmManager: sending alarm to uid=1000, package=android, listener=android.app.AlarmManager$ListenerWrapper@51f7e3f, listenerTag=*job.delay*, t=2, cnt=1, w=22392711, Int=0, ws=WorkSource{10062 org.altbeacon.beaconreference}\r\n08-26 00:04:54.701 1763-1763/? I/ActivityManager: Start proc 12301:org.altbeacon.beaconreference/u0a62 for service org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob\r\n08-26 00:04:54.903 12301-12301/? I/BeaconManager: BeaconManager started up on pid 12301 named 'org.altbeacon.beaconreference' for application package 'org.altbeacon.beaconreference'.  isMainProcess=true\r\n08-26 00:04:54.910 12301-12301/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-26 00:04:54.910 12301-12301/? D/BeaconParser: Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25\r\n08-26 00:04:54.916 12301-12301/? D/BeaconParser: Parsing beacon layout: m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24\r\n08-26 00:04:54.918 12301-12301/? D/BeaconReferenceApp: setting up background monitoring for beacons and power saving\r\n08-26 00:04:55.028 12301-12301/? I/ScanJob: Using immediateScanJobId from manifest: 208352939\r\n08-26 00:04:55.033 12301-12301/? I/ScanJob: Using periodicScanJobId from manifest: 208352940\r\n08-26 00:04:55.079 1763-1917/? D/AlarmManager: sending alarm to uid=1000, package=android, listener=android.app.AlarmManager$ListenerWrapper@5ba752f, listenerTag=*job.delay*, t=2, cnt=1, w=22400506, Int=0, ws=WorkSource{10062 org.altbeacon.beaconreference}\r\n08-26 00:04:55.080 1763-1917/? D/PMS: acquireWL(172673c): PARTIAL_WAKE_LOCK  *alarm* 0x1 1763 1000 WorkSource{10062 org.altbeacon.beaconreference}\r\n08-26 00:04:55.080 1763-1763/? D/PMS: releaseWL(172673c): PARTIAL_WAKE_LOCK  *alarm* 0x1 WorkSource{10062 org.altbeacon.beaconreference} 0x0\r\n08-26 00:04:55.091 12301-12301/? I/ScanJob: Using immediateScanJobId from manifest: 208352939\r\n08-26 00:04:55.094 12301-12301/? I/ScanJob: Using periodicScanJobId from manifest: 208352940\r\n08-26 00:04:55.100 1763-1763/? D/PMS: acquireWL(39cbb28): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 1763 1000 WorkSource{10062}\r\n    releaseWL(39cbb28): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 WorkSource{10062} 0x0\r\n08-26 00:04:55.102 1763-1763/? D/PMS: acquireWL(3b21041): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 1763 1000 WorkSource{10062}\r\n    releaseWL(3b21041): PARTIAL_WAKE_LOCK  *job*/org.altbeacon.beaconreference/org.altbeacon.beacon.service.ScanJob 0x1 WorkSource{10062} 0x0\r\n```\r\n\r\nIs there anything else I need to do in order to enable background discovery? "}}
{"actor":{"display_login":"giladrom"}}