{"action":"created","issue":{"url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/1","labels_url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/1/comments","events_url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/1/events","html_url":"https://github.com/coltin/android-priority-jobqueue/pull/1","id":114106211,"number":1,"title":"Add doze mode awareness","user":{"login":"coltin","id":577097,"avatar_url":"https://avatars.githubusercontent.com/u/577097?v=3","gravatar_id":"","url":"https://api.github.com/users/coltin","html_url":"https://github.com/coltin","followers_url":"https://api.github.com/users/coltin/followers","following_url":"https://api.github.com/users/coltin/following{/other_user}","gists_url":"https://api.github.com/users/coltin/gists{/gist_id}","starred_url":"https://api.github.com/users/coltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coltin/subscriptions","organizations_url":"https://api.github.com/users/coltin/orgs","repos_url":"https://api.github.com/users/coltin/repos","events_url":"https://api.github.com/users/coltin/events{/privacy}","received_events_url":"https://api.github.com/users/coltin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T17:42:15Z","updated_at":"2015-10-29T20:46:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coltin/android-priority-jobqueue/pulls/1","html_url":"https://github.com/coltin/android-priority-jobqueue/pull/1","diff_url":"https://github.com/coltin/android-priority-jobqueue/pull/1.diff","patch_url":"https://github.com/coltin/android-priority-jobqueue/pull/1.patch"},"body":"Android M adds Doze mode and App Standby. This change aims to make the Job Manager work with Doze mode.\r\n\r\nDoze mode disables access to network while active, but isConnectedOrConnecting() says there is network. This results in the Job Manager thinking there is network, scheduling jobs to run that require the network, those jobs failing and then being rescheduled (just to fail again).\r\n\r\nAdditionally when Doze exits a network broadcast (CONNECTIVITY_ACTION) is NOT sent. So until another job is entered into the queue or the device loses internet and gains it back, networking jobs will be idle even after Doze is finished. By listening to ACTION_DEVICE_IDLE_MODE_CHANGED the Job Manager can update the network queue accordingly."},"comment":{"url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/comments/152316203","html_url":"https://github.com/coltin/android-priority-jobqueue/pull/1#issuecomment-152316203","issue_url":"https://api.github.com/repos/coltin/android-priority-jobqueue/issues/1","id":152316203,"user":{"login":"tmelz","id":241244,"avatar_url":"https://avatars.githubusercontent.com/u/241244?v=3","gravatar_id":"","url":"https://api.github.com/users/tmelz","html_url":"https://github.com/tmelz","followers_url":"https://api.github.com/users/tmelz/followers","following_url":"https://api.github.com/users/tmelz/following{/other_user}","gists_url":"https://api.github.com/users/tmelz/gists{/gist_id}","starred_url":"https://api.github.com/users/tmelz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmelz/subscriptions","organizations_url":"https://api.github.com/users/tmelz/orgs","repos_url":"https://api.github.com/users/tmelz/repos","events_url":"https://api.github.com/users/tmelz/events{/privacy}","received_events_url":"https://api.github.com/users/tmelz/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T20:46:59Z","updated_at":"2015-10-29T20:46:59Z","body":"lgtm!"}}