{"action":"created","issue":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/315","repository_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le","labels_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/315/comments","events_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/315/events","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/315","id":334002225,"node_id":"MDU6SXNzdWUzMzQwMDIyMjU=","number":315,"title":"High Android Battery Usage After StartUpdatesAsync on characteristic (no data).","user":{"login":"veletron2","id":34792184,"node_id":"MDQ6VXNlcjM0NzkyMTg0","avatar_url":"https://avatars0.githubusercontent.com/u/34792184?v=4","gravatar_id":"","url":"https://api.github.com/users/veletron2","html_url":"https://github.com/veletron2","followers_url":"https://api.github.com/users/veletron2/followers","following_url":"https://api.github.com/users/veletron2/following{/other_user}","gists_url":"https://api.github.com/users/veletron2/gists{/gist_id}","starred_url":"https://api.github.com/users/veletron2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veletron2/subscriptions","organizations_url":"https://api.github.com/users/veletron2/orgs","repos_url":"https://api.github.com/users/veletron2/repos","events_url":"https://api.github.com/users/veletron2/events{/privacy}","received_events_url":"https://api.github.com/users/veletron2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T09:46:20Z","updated_at":"2018-06-20T09:46:27Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nMy App (on Android currently, iOS later) contains a Service which uses a single characteristic contained within the only service that my device advertises. The service is an Android Foreground Service, Android target SDK is 8.1. The test devices are Android 7.1 and 8.0. The use of a foreground service was forced by the changes in Android 8+.\r\n\r\nAll works fine, apart from battery usage, and I wondered if anyone here had any tips on that front.\r\n\r\nIf I start my app and call StartUpdatesAsync() then 50% of the battery will be consumed overnight by the app with no BLE traffic from the connected device.\r\n\r\nIf I remove the call to StartUpdatesAsync() as such killing the listener then the App will only consume 1% battery overnight.\r\n\r\nMy App requires a 'constant' connection to the peripheral which is a body-worn medical device. Is what I am experiencing normal? Is there a reasonable route around it? At the moment I am thinking that the app will need to use a the alarm manager to periodically force a check for data on my characteristic every few seconds manually?\r\n\r\n## Steps to reproduce\r\n\r\n1. Connect to device\r\n\r\n2. Get the BLE Service\r\n\r\n3. Get the Characteristic and call StartUpdatesAsync() on it\r\n\r\n## Expected behavior\r\nNormal battery use (no data on BLE characteristic)\r\n\r\n## Actual behavior\r\nHigh data useage - 50% battery consumed overnight with no BLE traffic\r\n\r\n### Crashlog\r\n\r\n## Configuration\r\n\r\n**Version of the Plugin:**  1.3.0\r\n\r\n**Platform:** e.g. Android 7.1 and 8.1 \r\n\r\n**Device:** Samsung Galaxy S7 and Samsung Note 8\r\n"},"comment":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/comments/398690560","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/315#issuecomment-398690560","issue_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/315","id":398690560,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODY5MDU2MA==","user":{"login":"smsissuechecker","id":25065596,"node_id":"MDQ6VXNlcjI1MDY1NTk2","avatar_url":"https://avatars0.githubusercontent.com/u/25065596?v=4","gravatar_id":"","url":"https://api.github.com/users/smsissuechecker","html_url":"https://github.com/smsissuechecker","followers_url":"https://api.github.com/users/smsissuechecker/followers","following_url":"https://api.github.com/users/smsissuechecker/following{/other_user}","gists_url":"https://api.github.com/users/smsissuechecker/gists{/gist_id}","starred_url":"https://api.github.com/users/smsissuechecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smsissuechecker/subscriptions","organizations_url":"https://api.github.com/users/smsissuechecker/orgs","repos_url":"https://api.github.com/users/smsissuechecker/repos","events_url":"https://api.github.com/users/smsissuechecker/events{/privacy}","received_events_url":"https://api.github.com/users/smsissuechecker/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T09:46:26Z","updated_at":"2018-06-20T09:46:26Z","author_association":"NONE","body":"Hi @veletron2,\n\nI'm the friendly issue checker.\nThanks for using the issue template :star2:\nI appreciate it very much. I'm sure, the maintainers of this repository will answer, soon."}}
{"actor":{"display_login":"smsissuechecker"}}