{"action":"created","issue":{"url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/2","labels_url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/2/comments","events_url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/2/events","html_url":"https://github.com/chenjishi/android_location_demo/issues/2","id":42492912,"number":2,"title":"Do geofence trigger also, when your app is not active?","user":{"login":"lordgreg","id":480546,"avatar_url":"https://avatars.githubusercontent.com/u/480546?v=3","gravatar_id":"","url":"https://api.github.com/users/lordgreg","html_url":"https://github.com/lordgreg","followers_url":"https://api.github.com/users/lordgreg/followers","following_url":"https://api.github.com/users/lordgreg/following{/other_user}","gists_url":"https://api.github.com/users/lordgreg/gists{/gist_id}","starred_url":"https://api.github.com/users/lordgreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordgreg/subscriptions","organizations_url":"https://api.github.com/users/lordgreg/orgs","repos_url":"https://api.github.com/users/lordgreg/repos","events_url":"https://api.github.com/users/lordgreg/events{/privacy}","received_events_url":"https://api.github.com/users/lordgreg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-09-11T06:21:41Z","updated_at":"2015-03-18T13:13:48Z","closed_at":null,"body":"Hi,\r\n\r\nI'm developing an app which, with other possible features, also uses Geofencing. Problem with EVERYONE having using built-in geofence api is, it does NOT trigger when app is closed down (press home button OR back then leave a phone to sleep a while). Do not wake it up and just do the thing that triggers geofence location change.\r\n\r\nBy how geofences work, it SHOULD NOT trigger or will trigger sometimes, not always. Have you perhaps had this kind of problem? If so, did you managed to find out the reason behind it?\r\n\r\nHere are few links:\r\n\r\nMy own stackoverflow post: http://stackoverflow.com/questions/25752224/geofences-not-triggering-pendingintents-and-broadcastreceiver\r\n\r\nPossible solution which doesn't work for me http://stackoverflow.com/questions/19505614/android-geofence-eventually-stop-getting-transition-intents/19521823#19521823\r\n\r\nhttp://stackoverflow.com/questions/21414160/how-to-increase-consistency-of-android-geofence-enter-exit-notifications\r\n\r\nhttps://groups.google.com/forum/#!topic/android-developers/mlHd8ECMmWI\r\n\r\nhttp://stackoverflow.com/questions/17571333/geofencing-sample-app-is-not-working-with-mock-location\r\n\r\nIf you're willing to find the solution, please contact me.\r\n\r\nRegards,\r\n\r\nGregor"},"comment":{"url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/comments/82964617","html_url":"https://github.com/chenjishi/android_location_demo/issues/2#issuecomment-82964617","issue_url":"https://api.github.com/repos/chenjishi/android_location_demo/issues/2","id":82964617,"user":{"login":"lordgreg","id":480546,"avatar_url":"https://avatars.githubusercontent.com/u/480546?v=3","gravatar_id":"","url":"https://api.github.com/users/lordgreg","html_url":"https://github.com/lordgreg","followers_url":"https://api.github.com/users/lordgreg/followers","following_url":"https://api.github.com/users/lordgreg/following{/other_user}","gists_url":"https://api.github.com/users/lordgreg/gists{/gist_id}","starred_url":"https://api.github.com/users/lordgreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordgreg/subscriptions","organizations_url":"https://api.github.com/users/lordgreg/orgs","repos_url":"https://api.github.com/users/lordgreg/repos","events_url":"https://api.github.com/users/lordgreg/events{/privacy}","received_events_url":"https://api.github.com/users/lordgreg/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T13:13:48Z","updated_at":"2015-03-18T13:13:48Z","body":"@vikram1234 this is fantastic news!\r\n\r\nDo you mind sharing your Android code with BackgroundService or whichever you used for geo-entering  and goe-exiting? \r\n\r\nAlso, did the trigger appear when you closed the app down and imediately forced transition or was the phone in deep sleep?"}}