{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/266","repository_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android","labels_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/266/comments","events_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/266/events","html_url":"https://github.com/firebase/firebase-jobdispatcher-android/issues/266","id":353384767,"node_id":"MDU6SXNzdWUzNTMzODQ3Njc=","number":266,"title":"Job not running on Oreo 8.1","user":{"login":"krishnanvs11","id":42645307,"node_id":"MDQ6VXNlcjQyNjQ1MzA3","avatar_url":"https://avatars0.githubusercontent.com/u/42645307?v=4","gravatar_id":"","url":"https://api.github.com/users/krishnanvs11","html_url":"https://github.com/krishnanvs11","followers_url":"https://api.github.com/users/krishnanvs11/followers","following_url":"https://api.github.com/users/krishnanvs11/following{/other_user}","gists_url":"https://api.github.com/users/krishnanvs11/gists{/gist_id}","starred_url":"https://api.github.com/users/krishnanvs11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishnanvs11/subscriptions","organizations_url":"https://api.github.com/users/krishnanvs11/orgs","repos_url":"https://api.github.com/users/krishnanvs11/repos","events_url":"https://api.github.com/users/krishnanvs11/events{/privacy}","received_events_url":"https://api.github.com/users/krishnanvs11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-23T13:37:12Z","updated_at":"2018-10-20T21:50:43Z","closed_at":null,"author_association":"NONE","body":"On a Nokia1 TA-1066 model, Android v 8.1.0, the scheduler is not running periodically. I tried adding a test scheduler in Boot up but it is not running. This is the code snippet, appreciate your quick help.\r\n\r\n        <service\r\n            android:name=\".TestFBDispJobService\"\r\n            android:enabled=\"true\">\r\n            <intent-filter>\r\n                <action android:name=\"com.firebase.jobdispatcher.ACTION_EXECUTE\"/>\r\n            </intent-filter>\r\n        </service>\r\n\r\n\r\n\r\n            FirebaseJobDispatcher test1 = new FirebaseJobDispatcher(new GooglePlayDriver(context));\r\n            Job job = test1.newJobBuilder()\r\n                    //persist the task across boots\r\n                    .setLifetime(Lifetime.FOREVER)\r\n                    //call this service when the criteria are met.\r\n                    .setService(TestFBDispJobService.class)\r\n                    //unique id of the task\r\n                    .setTag(\"TEST1\")\r\n                    //don't overwrite an existing job with the same tag\r\n                    .setReplaceCurrent(true)\r\n                    // We are mentioning that the job is periodic.\r\n                    .setRecurring(true)\r\n                    .setTrigger(Trigger.executionWindow( (60 * 15),\r\n                            ((60 * 20) + (60 * 5)))\r\n                    // retry with exponential backoff\r\n                    .setRetryStrategy(RetryStrategy.DEFAULT_LINEAR)\r\n                    //.setRetryStrategy(RetryStrategy.DEFAULT_EXPONENTIAL)\r\n                    //Run this job only when the network is available.\r\n                    .setConstraints(Constraint.ON_ANY_NETWORK)\r\n                    .build();\r\n            test1.mustSchedule(job);\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/comments/431620731","html_url":"https://github.com/firebase/firebase-jobdispatcher-android/issues/266#issuecomment-431620731","issue_url":"https://api.github.com/repos/firebase/firebase-jobdispatcher-android/issues/266","id":431620731,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTYyMDczMQ==","user":{"login":"temirlannurdinov","id":32900101,"node_id":"MDQ6VXNlcjMyOTAwMTAx","avatar_url":"https://avatars3.githubusercontent.com/u/32900101?v=4","gravatar_id":"","url":"https://api.github.com/users/temirlannurdinov","html_url":"https://github.com/temirlannurdinov","followers_url":"https://api.github.com/users/temirlannurdinov/followers","following_url":"https://api.github.com/users/temirlannurdinov/following{/other_user}","gists_url":"https://api.github.com/users/temirlannurdinov/gists{/gist_id}","starred_url":"https://api.github.com/users/temirlannurdinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temirlannurdinov/subscriptions","organizations_url":"https://api.github.com/users/temirlannurdinov/orgs","repos_url":"https://api.github.com/users/temirlannurdinov/repos","events_url":"https://api.github.com/users/temirlannurdinov/events{/privacy}","received_events_url":"https://api.github.com/users/temirlannurdinov/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T21:50:43Z","updated_at":"2018-10-20T21:50:43Z","author_association":"NONE","body":"```\r\n//Run this job only when the network is available.\r\n                .setConstraints(Constraint.ON_ANY_NETWORK)\r\n// We are mentioning that the job is periodic.\r\n                .setRecurring(true)\r\n                .setTrigger(Trigger.executionWindow( (60 * 15),\r\n                        ((60 * 20) + (60 * 5)))\r\n```\r\n\r\nAs I know you can set only one of these. Or periodic or network trigger. "}}
{"actor":{"display_login":"temirlannurdinov"}}