{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/171","repository_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android","labels_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/171/comments","events_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/171/events","html_url":"https://github.com/firebase/firebase-jobdispatcher-android/issues/171","id":264844274,"number":171,"title":"Job Service is not starting by using FirebaseDispatcher eventhough getting scheduling job success","user":{"login":"Kethu-Yerramma","id":31097121,"avatar_url":"https://avatars1.githubusercontent.com/u/31097121?v=4","gravatar_id":"","url":"https://api.github.com/users/Kethu-Yerramma","html_url":"https://github.com/Kethu-Yerramma","followers_url":"https://api.github.com/users/Kethu-Yerramma/followers","following_url":"https://api.github.com/users/Kethu-Yerramma/following{/other_user}","gists_url":"https://api.github.com/users/Kethu-Yerramma/gists{/gist_id}","starred_url":"https://api.github.com/users/Kethu-Yerramma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kethu-Yerramma/subscriptions","organizations_url":"https://api.github.com/users/Kethu-Yerramma/orgs","repos_url":"https://api.github.com/users/Kethu-Yerramma/repos","events_url":"https://api.github.com/users/Kethu-Yerramma/events{/privacy}","received_events_url":"https://api.github.com/users/Kethu-Yerramma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-12T07:46:51Z","updated_at":"2018-03-28T09:45:18Z","closed_at":null,"author_association":"NONE","body":" FirebaseJobDispatcher firebaseJobDispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(SampleActivity.this));\r\n        Job myJob = firebaseJobDispatcher.newJobBuilder().setService(MyFirebaseJobService.class) // the JobService that will be called\r\n                .setTag(JOB_ID)        // uniquely identifies the job\r\n                // one-off job\r\n                .setRecurring(true)\r\n                // don't persist past a device reboot\r\n                .setLifetime(Lifetime.UNTIL_NEXT_BOOT)\r\n                // start between 0 and 1 seconds from now\r\n                .setTrigger(Trigger.executionWindow(0, 1))\r\n                // don't overwrite an existing job with the same tag\r\n                .setReplaceCurrent(false)\r\n                // retry with exponential backoff\r\n                .setRetryStrategy(RetryStrategy.DEFAULT_EXPONENTIAL)\r\n                // constraints that need to be satisfied for the job to run\r\n                .setConstraints(\r\n                        // only run on an unmetered network\r\n                        Constraint.ON_UNMETERED_NETWORK,\r\n                        // only run when the device is charging\r\n                        Constraint.DEVICE_CHARGING\r\n                )\r\n                .build();\r\n\r\n        firebaseJobDispatcher.mustSchedule(myJob);\r\n        Log.e(TAG,\"Id \"+(firebaseJobDispatcher.schedule(myJob) == SCHEDULE_RESULT_SUCCESS?\"Success\":\"Fail\"));\r\n\r\nHere is the source code.\r\n Log.e(TAG,\"Id \"+(firebaseJobDispatcher.schedule(myJob) == SCHEDULE_RESULT_SUCCESS?\"Success\":\"Fail\"));\r\n this gives success but service is not started.\r\nPresent I am using Nougat Version Android device.\r\nLibraries:\r\n compile 'com.firebase:firebase-jobdispatcher:0.8.2'\r\n    compile 'com.google.code.gson:gson:2.8.2'\r\n    compile 'com.google.android.gms:play-services:11.0.4'\r\n\r\nPlease help me to how to fix it.I am facing this issue from more than 2 weeks.\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/comments/376826984","html_url":"https://github.com/firebase/firebase-jobdispatcher-android/issues/171#issuecomment-376826984","issue_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/171","id":376826984,"user":{"login":"NitroG42","id":1549495,"avatar_url":"https://avatars3.githubusercontent.com/u/1549495?v=4","gravatar_id":"","url":"https://api.github.com/users/NitroG42","html_url":"https://github.com/NitroG42","followers_url":"https://api.github.com/users/NitroG42/followers","following_url":"https://api.github.com/users/NitroG42/following{/other_user}","gists_url":"https://api.github.com/users/NitroG42/gists{/gist_id}","starred_url":"https://api.github.com/users/NitroG42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NitroG42/subscriptions","organizations_url":"https://api.github.com/users/NitroG42/orgs","repos_url":"https://api.github.com/users/NitroG42/repos","events_url":"https://api.github.com/users/NitroG42/events{/privacy}","received_events_url":"https://api.github.com/users/NitroG42/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T09:45:18Z","updated_at":"2018-03-28T09:45:18Z","author_association":"NONE","body":"It happens on our devices (Samsung) when the eco mode is enabled and background network is restricted. I wonder if there is a way to detect this mode to warn the user..."}}
{"actor":{"display_login":"NitroG42"}}