{"action":"created","issue":{"url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/162","labels_url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/162/comments","events_url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/162/events","html_url":"https://github.com/petermetz/cordova-plugin-ibeacon/issues/162","id":91152151,"number":162,"title":"Battery level of iBeacon Device","user":{"login":"hkcity1111","id":6868985,"avatar_url":"https://avatars.githubusercontent.com/u/6868985?v=3","gravatar_id":"","url":"https://api.github.com/users/hkcity1111","html_url":"https://github.com/hkcity1111","followers_url":"https://api.github.com/users/hkcity1111/followers","following_url":"https://api.github.com/users/hkcity1111/following{/other_user}","gists_url":"https://api.github.com/users/hkcity1111/gists{/gist_id}","starred_url":"https://api.github.com/users/hkcity1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkcity1111/subscriptions","organizations_url":"https://api.github.com/users/hkcity1111/orgs","repos_url":"https://api.github.com/users/hkcity1111/repos","events_url":"https://api.github.com/users/hkcity1111/events{/privacy}","received_events_url":"https://api.github.com/users/hkcity1111/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-26T04:46:50Z","updated_at":"2015-07-01T13:36:59Z","closed_at":null,"body":"Hi\r\n\r\nAs some factories add broadcasting battery level in ibeacon device\r\nIs there any way to get battery level of iBeacon in this plugin in addition to Major/Minor?\r\nIf not, do anyone have resource / guideline to me get battery level in native code?\r\nBecause  we want to provide alert of low battery level of ibeacon and trigger replacement of battery\r\nby us. \r\nThanks for our advice!\r\n\r\nRegards,  \r\n  Kenneth "},"comment":{"url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/comments/117679226","html_url":"https://github.com/petermetz/cordova-plugin-ibeacon/issues/162#issuecomment-117679226","issue_url":"https://api.github.com/repos/petermetz/cordova-plugin-ibeacon/issues/162","id":117679226,"user":{"login":"Crashthatch","id":186067,"avatar_url":"https://avatars.githubusercontent.com/u/186067?v=3","gravatar_id":"","url":"https://api.github.com/users/Crashthatch","html_url":"https://github.com/Crashthatch","followers_url":"https://api.github.com/users/Crashthatch/followers","following_url":"https://api.github.com/users/Crashthatch/following{/other_user}","gists_url":"https://api.github.com/users/Crashthatch/gists{/gist_id}","starred_url":"https://api.github.com/users/Crashthatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crashthatch/subscriptions","organizations_url":"https://api.github.com/users/Crashthatch/orgs","repos_url":"https://api.github.com/users/Crashthatch/repos","events_url":"https://api.github.com/users/Crashthatch/events{/privacy}","received_events_url":"https://api.github.com/users/Crashthatch/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T13:36:59Z","updated_at":"2015-07-01T13:36:59Z","body":"I believe the battery level isn't part of the ibeacon standard, and not included in the advertisement. Different manufacturers provide different ways of getting the battery level. It depends on the manufacturer of your beacons. I've seen some that allow battery-level to be read using GATT characteristics, but that's part of plain BLE, not the ibeacon spec. You'd have to have your phone connect to the beacon and read out the value, not just listen for ibeacon advertisements."}}