{"action":"opened","issue":{"url":"https://api.github.com/repos/owntracks/android/issues/340","repository_url":"https://api.github.com/repos/owntracks/android","labels_url":"https://api.github.com/repos/owntracks/android/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/owntracks/android/issues/340/comments","events_url":"https://api.github.com/repos/owntracks/android/issues/340/events","html_url":"https://github.com/owntracks/android/issues/340","id":143561072,"number":340,"title":"Use onLocationChanged to avoid running in the background?","user":{"login":"skorokithakis","id":23648,"avatar_url":"https://avatars.githubusercontent.com/u/23648?v=3","gravatar_id":"","url":"https://api.github.com/users/skorokithakis","html_url":"https://github.com/skorokithakis","followers_url":"https://api.github.com/users/skorokithakis/followers","following_url":"https://api.github.com/users/skorokithakis/following{/other_user}","gists_url":"https://api.github.com/users/skorokithakis/gists{/gist_id}","starred_url":"https://api.github.com/users/skorokithakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skorokithakis/subscriptions","organizations_url":"https://api.github.com/users/skorokithakis/orgs","repos_url":"https://api.github.com/users/skorokithakis/repos","events_url":"https://api.github.com/users/skorokithakis/events{/privacy}","received_events_url":"https://api.github.com/users/skorokithakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T18:26:14Z","updated_at":"2016-03-25T18:26:14Z","closed_at":null,"body":"Would it be possible to use [onLocationChanged](https://developer.android.com/training/location/receive-location-updates.html) to connect to the server and send the message, and avoid running a background service at all times? The app could also be configured to buffer N updates and send them all together at a later time."}}