{"action":"created","issue":{"url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/42","repository_url":"https://api.github.com/repos/vikeri/react-native-background-job","labels_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/42/comments","events_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/42/events","html_url":"https://github.com/vikeri/react-native-background-job/issues/42","id":244199729,"number":42,"title":"Error: cannot read property 'jobs' of undefined.","user":{"login":"Kliton","id":10452377,"avatar_url":"https://avatars2.githubusercontent.com/u/10452377?v=4","gravatar_id":"","url":"https://api.github.com/users/Kliton","html_url":"https://github.com/Kliton","followers_url":"https://api.github.com/users/Kliton/followers","following_url":"https://api.github.com/users/Kliton/following{/other_user}","gists_url":"https://api.github.com/users/Kliton/gists{/gist_id}","starred_url":"https://api.github.com/users/Kliton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kliton/subscriptions","organizations_url":"https://api.github.com/users/Kliton/orgs","repos_url":"https://api.github.com/users/Kliton/repos","events_url":"https://api.github.com/users/Kliton/events{/privacy}","received_events_url":"https://api.github.com/users/Kliton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-19T23:04:29Z","updated_at":"2017-07-24T13:34:00Z","closed_at":null,"body":"Cannot read property 'jobs' of undefined.\r\n\r\nHere is my index.android.js\r\n```javascript\r\nimport { AppRegistry } from 'react-native';\r\nimport App from './App';\r\nimport Store from './redux/store';\r\nimport * as actions from './actions/addressbook'\r\nimport BackgroundJob from 'react-native-background-job';\r\n\r\nAppRegistry.registerComponent('contactsync', () => App);\r\n\r\n// puller =  () => {\r\n//     console.log(\"RUNNO IN BACKGROUND\");\r\n//   Store.dispatch(actions.requestedNewNumber());\r\n// }\r\n\r\nconst backgroundJob = {\r\n jobKey: \"myJob\",\r\n job: () => console.log(\"Running in background\")\r\n};\r\n\r\nBackgroundJob.register(backgroundJob);\r\n\r\nvar backgroundSchedule = {\r\n jobKey: \"myJob\",\r\n timeout: 2000\r\n}\r\n\r\nBackgroundJob.schedule(backgroundSchedule);\r\n\r\n```\r\n\r\nMy dependencies:\r\n``` javascript\r\n{\r\n  \"react-native\": \"^0.45.1\",\r\n    \"react-native-background-job\": \"^1.2.4\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/comments/317423847","html_url":"https://github.com/vikeri/react-native-background-job/issues/42#issuecomment-317423847","issue_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/42","id":317423847,"user":{"login":"Kliton","id":10452377,"avatar_url":"https://avatars2.githubusercontent.com/u/10452377?v=4","gravatar_id":"","url":"https://api.github.com/users/Kliton","html_url":"https://github.com/Kliton","followers_url":"https://api.github.com/users/Kliton/followers","following_url":"https://api.github.com/users/Kliton/following{/other_user}","gists_url":"https://api.github.com/users/Kliton/gists{/gist_id}","starred_url":"https://api.github.com/users/Kliton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kliton/subscriptions","organizations_url":"https://api.github.com/users/Kliton/orgs","repos_url":"https://api.github.com/users/Kliton/repos","events_url":"https://api.github.com/users/Kliton/events{/privacy}","received_events_url":"https://api.github.com/users/Kliton/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T13:34:00Z","updated_at":"2017-07-24T13:34:00Z","body":"Still not working...\r\n"}}
{"actor":{"display_login":"Kliton"}}