{"action":"created","issue":{"url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/45","repository_url":"https://api.github.com/repos/jbeuckm/TiBeacons","labels_url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/45/comments","events_url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/45/events","html_url":"https://github.com/jbeuckm/TiBeacons/issues/45","id":137843859,"number":45,"title":"Background Ranging stops after 3 minutes","user":{"login":"wallanoo","id":11192421,"avatar_url":"https://avatars.githubusercontent.com/u/11192421?v=3","gravatar_id":"","url":"https://api.github.com/users/wallanoo","html_url":"https://github.com/wallanoo","followers_url":"https://api.github.com/users/wallanoo/followers","following_url":"https://api.github.com/users/wallanoo/following{/other_user}","gists_url":"https://api.github.com/users/wallanoo/gists{/gist_id}","starred_url":"https://api.github.com/users/wallanoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallanoo/subscriptions","organizations_url":"https://api.github.com/users/wallanoo/orgs","repos_url":"https://api.github.com/users/wallanoo/repos","events_url":"https://api.github.com/users/wallanoo/events{/privacy}","received_events_url":"https://api.github.com/users/wallanoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-03-02T11:10:34Z","updated_at":"2016-04-21T18:09:05Z","closed_at":null,"body":"Hi\r\n\r\nI've started this discussion in issue #37 \r\n\r\nI've coded an app that have to perform region monitoring and continuous ranging in background, as defined in\r\n\r\n(https://community.estimote.com/hc/en-us/articles/203914068-Is-it-possible-to-use-beacon-ranging-in-the-background-)\r\n\r\nI be careful to strictly follow the instructions (added permissions and background mode in tiapp.xml, tried a background service etc.), thanks to @RBAtkins0n and @williamrijksen \r\n\r\nso my app is able to notify if a beacon is entering/exiting the region, even if it happens after many minutes.\r\n\r\nUnfortunately, ranging ALWAYS stops after 2-3 minutes, no way.\r\n\r\nI'm working with 0.11.0 module, Titanium SDK 5.1.2, Xcode 6.2\r\n\r\nMaybe I miss something obvious, my code is quite simple and it seems all ok...\r\n\r\nI attach the code here, I actually do not know how to fix it...\r\n\r\n[files.zip](https://github.com/jbeuckm/TiBeacons/files/154613/files.zip)\r\n\r\n\r\nthanks for all in advance"},"comment":{"url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/comments/213041951","html_url":"https://github.com/jbeuckm/TiBeacons/issues/45#issuecomment-213041951","issue_url":"https://api.github.com/repos/jbeuckm/TiBeacons/issues/45","id":213041951,"user":{"login":"Astrovic","id":2573811,"avatar_url":"https://avatars.githubusercontent.com/u/2573811?v=3","gravatar_id":"","url":"https://api.github.com/users/Astrovic","html_url":"https://github.com/Astrovic","followers_url":"https://api.github.com/users/Astrovic/followers","following_url":"https://api.github.com/users/Astrovic/following{/other_user}","gists_url":"https://api.github.com/users/Astrovic/gists{/gist_id}","starred_url":"https://api.github.com/users/Astrovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astrovic/subscriptions","organizations_url":"https://api.github.com/users/Astrovic/orgs","repos_url":"https://api.github.com/users/Astrovic/repos","events_url":"https://api.github.com/users/Astrovic/events{/privacy}","received_events_url":"https://api.github.com/users/Astrovic/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T18:09:05Z","updated_at":"2016-04-21T18:09:05Z","body":"But if I enabled background location in PLIST (NSLocationAlwaysUsageDescription), I can avoid using a background service (Ti.App.iOS.registerBackgroundService) then? Or is it better to use the background service  also?"}}