{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/530","repository_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation","labels_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/530/comments","events_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/530/events","html_url":"https://github.com/transistorsoft/react-native-background-geolocation/issues/530","id":342320026,"node_id":"MDU6SXNzdWUzNDIzMjAwMjY=","number":530,"title":"App crash in HeadlessTask with react-native-navigation","user":{"login":"kishanj918","id":3994657,"node_id":"MDQ6VXNlcjM5OTQ2NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/3994657?v=4","gravatar_id":"","url":"https://api.github.com/users/kishanj918","html_url":"https://github.com/kishanj918","followers_url":"https://api.github.com/users/kishanj918/followers","following_url":"https://api.github.com/users/kishanj918/following{/other_user}","gists_url":"https://api.github.com/users/kishanj918/gists{/gist_id}","starred_url":"https://api.github.com/users/kishanj918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kishanj918/subscriptions","organizations_url":"https://api.github.com/users/kishanj918/orgs","repos_url":"https://api.github.com/users/kishanj918/repos","events_url":"https://api.github.com/users/kishanj918/events{/privacy}","received_events_url":"https://api.github.com/users/kishanj918/received_events","type":"User","site_admin":false},"labels":[{"id":557504460,"node_id":"MDU6TGFiZWw1NTc1MDQ0NjA=","url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/labels/Android","name":"Android","color":"90c652","default":false},{"id":480998321,"node_id":"MDU6TGFiZWw0ODA5OTgzMjE=","url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/labels/Waiting%20for%20feedback","name":"Waiting for feedback","color":"b60205","default":false},{"id":1002414405,"node_id":"MDU6TGFiZWwxMDAyNDE0NDA1","url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/labels/react-native-navigation","name":"react-native-navigation","color":"c906c9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-07-18T13:05:58Z","updated_at":"2018-07-27T12:17:07Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n*****************************************************************\r\n* WARNING:  If you ignore this template, so too will your issue\r\n*****************************************************************\r\n-->\r\n\r\n<!--\r\n  Provide a general summary of the issue in the Title above \r\n-->\r\n## Your Environment\r\n* Plugin version: 2.12.2\r\n* Platform: Android\r\n* OS version: Android Nougat\r\n* Device manufacturer / model: moto c, moto G 5s Plus\r\n* React Native version (`react-native -v`): 0.55.4\r\n* Plugin config\r\n\r\n## Expected Behavior\r\nexpecting to work fine\r\n\r\n## Actual Behavior\r\napp carsh in background on Headless Task call\r\n\r\n## Steps to Reproduce\r\n1. setup headless conficuration for react-native-navigation as shown at https://github.com/wix/react-native-navigation/pull/1444\r\n2.  setup headless task in index.js as you per https://github.com/transistorsoft/react-native-background-geolocation/wiki/Android-Headless-Mode  wiki article\r\n\r\n## Context\r\nI'm trying to test headless Task but, it's crashing the app.\r\n\r\n## Debug logs\r\n```\r\n07-18 18:24:27.372 930-3252/? E/Sensors: handleToDriver handle(0)\r\n07-18 18:24:27.386 930-3252/? E/Sensors: new setDelay handle(0),ns(10000000)m, error(0), index(2)\r\n07-18 18:24:28.609 1058-1452/? E/NetworkController.MobileSignalController(2): mCurrentState.dataConnected = false; mCurrentState.connected = true; mDataState = -1; isIMS = false; mDataConnectionState = 0\r\n07-18 18:24:30.559 268-422/? E/mnl_linux: mnl_utl_load_property: Config is not set yet, ignore\r\n07-18 18:24:30.598 268-422/? E/gps_controlller: hasAlmanac: open file(/nvcfg/almanac.dat) fail\r\n07-18 18:24:30.681 930-1714/? E/Sensors: handleToDriver handle(0)\r\n07-18 18:24:30.695 930-1714/? E/Sensors: new setDelay handle(0),ns(10000000)m, error(0), index(2)\r\n07-18 18:24:31.028 930-1271/? E/CellLocation: create GsmCellLocation\r\n07-18 18:24:31.180 1058-1452/? E/NetworkController.MobileSignalController(1): mCurrentState.dataConnected = false; mCurrentState.connected = true; mDataState = 2; isIMS = true; mDataConnectionState = 0\r\n07-18 18:24:31.250 1058-1452/? E/NetworkController.MobileSignalController(1): mCurrentState.dataConnected = false; mCurrentState.connected = true; mDataState = 2; isIMS = true; mDataConnectionState = 0\r\n07-18 18:24:31.712 930-998/? E/WifiStateMachine: mIsFullScanOngoing: false, mSendScanResultsBroadcast: false\r\n07-18 18:24:31.732 930-1000/? E/WifiScanningService: WifiSingleScanStateMachine IdleState enter\r\n07-18 18:24:32.666 7551-7551/com.betteryou E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                             Process: com.betteryou, PID: 7551\r\n                                                             java.lang.ExceptionInInitializerError\r\n                                                                 at com.facebook.react.bridge.Arguments.createMap(Arguments.java:163)\r\n                                                                 at com.facebook.react.bridge.Arguments.fromBundle(Arguments.java:287)\r\n                                                                 at com.transistorsoft.rnbackgroundgeolocation.HeadlessJobService.onStartJob(HeadlessJobService.java:20)\r\n                                                                 at android.app.job.JobService$JobHandler.handleMessage(JobService.java:143)\r\n                                                                 at android.os.Handler.dispatchMessage(Handler.java:110)\r\n                                                                 at android.os.Looper.loop(Looper.java:203)\r\n                                                                 at android.app.ActivityThread.main(ActivityThread.java:6253)\r\n                                                                 at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)\r\n                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)\r\n                                                              Caused by: java.lang.RuntimeException: SoLoader.init() not yet called\r\n                                                                 at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java:335)\r\n                                                                 at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:238)\r\n                                                                 at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:18)\r\n                                                                 at com.facebook.react.bridge.NativeMap.<clinit>(NativeMap.java:19)\r\n                                                                 at com.facebook.react.bridge.Arguments.createMap(Arguments.java:163) \r\n                                                                 at com.facebook.react.bridge.Arguments.fromBundle(Arguments.java:287) \r\n                                                                 at com.transistorsoft.rnbackgroundgeolocation.HeadlessJobService.onStartJob(HeadlessJobService.java:20) \r\n                                                                 at android.app.job.JobService$JobHandler.handleMessage(JobService.java:143) \r\n                                                                 at android.os.Handler.dispatchMessage(Handler.java:110) \r\n                                                                 at android.os.Looper.loop(Looper.java:203) \r\n                                                                 at android.app.ActivityThread.main(ActivityThread.java:6253) \r\n                                                                 at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) \r\n                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924) \r\n07-18 18:24:35.335 930-1265/? E/Sensors: handleToDriver handle(0)\r\n07-18 18:24:35.366 930-1265/? E/Sensors: new setDelay handle(0),ns(10000000)m, error(0), index(2)\r\n07-18 18:24:36.727 930-998/? E/WifiStateMachine: mIsFullScanOngoing: false, mSendScanResultsBroadcast: false\r\n07-18 18:24:36.757 930-1000/? E/WifiScanningService: WifiSingleScanStateMachine IdleState enter\r\n07-18 18:24:36.986 930-1327/? E/Sensors: handleToDriver handle(0)\r\n07-18 18:24:37.000 930-1327/? E/Sensors: new setDelay handle(0),ns(10000000)m, error(0), index(2)\r\n```"},"comment":{"url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/comments/408402248","html_url":"https://github.com/transistorsoft/react-native-background-geolocation/issues/530#issuecomment-408402248","issue_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/530","id":408402248,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODQwMjI0OA==","user":{"login":"kishanj918","id":3994657,"node_id":"MDQ6VXNlcjM5OTQ2NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/3994657?v=4","gravatar_id":"","url":"https://api.github.com/users/kishanj918","html_url":"https://github.com/kishanj918","followers_url":"https://api.github.com/users/kishanj918/followers","following_url":"https://api.github.com/users/kishanj918/following{/other_user}","gists_url":"https://api.github.com/users/kishanj918/gists{/gist_id}","starred_url":"https://api.github.com/users/kishanj918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kishanj918/subscriptions","organizations_url":"https://api.github.com/users/kishanj918/orgs","repos_url":"https://api.github.com/users/kishanj918/repos","events_url":"https://api.github.com/users/kishanj918/events{/privacy}","received_events_url":"https://api.github.com/users/kishanj918/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T12:17:07Z","updated_at":"2018-07-27T12:17:07Z","author_association":"NONE","body":"I'm trying again with another app structure for starting react-native-navigation app. inform you soon."}}
{"actor":{"display_login":"kishanj918"}}