{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/830","repository_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt","labels_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/830/comments","events_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/830/events","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/830","id":380718776,"node_id":"MDU6SXNzdWUzODA3MTg3NzY=","number":830,"title":"http transfer suspended when app in background","user":{"login":"locsim","id":14050942,"node_id":"MDQ6VXNlcjE0MDUwOTQy","avatar_url":"https://avatars3.githubusercontent.com/u/14050942?v=4","gravatar_id":"","url":"https://api.github.com/users/locsim","html_url":"https://github.com/locsim","followers_url":"https://api.github.com/users/locsim/followers","following_url":"https://api.github.com/users/locsim/following{/other_user}","gists_url":"https://api.github.com/users/locsim/gists{/gist_id}","starred_url":"https://api.github.com/users/locsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locsim/subscriptions","organizations_url":"https://api.github.com/users/locsim/orgs","repos_url":"https://api.github.com/users/locsim/repos","events_url":"https://api.github.com/users/locsim/events{/privacy}","received_events_url":"https://api.github.com/users/locsim/received_events","type":"User","site_admin":false},"labels":[{"id":252053175,"node_id":"MDU6TGFiZWwyNTIwNTMxNzU=","url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":252053177,"node_id":"MDU6TGFiZWwyNTIwNTMxNzc=","url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-14T14:18:18Z","updated_at":"2018-11-15T16:34:08Z","closed_at":null,"author_association":"NONE","body":"    Plugin version: 2.13.1\r\n    Platform: Android\r\n    OS version: 8.1.0\r\n    Device manufacturer / model: Oneplus 5T\r\n    Cordova version (cordova -v): 8.0.0\r\n    Cordova platform version (cordova platform ls): android 7.0.0\r\n    Plugin config\r\n\r\n{\r\n\"activityRecognitionInterval\": 1000,\r\n\"allowIdenticalLocations\": false,\r\n\"autoSync\": true,\r\n\"autoSyncThreshold\": 0,\r\n\"batchSync\": false,\r\n\"debug\": true,\r\n\"deferTime\": 0,\r\n\"desiredAccuracy\": 0,\r\n\"desiredOdometerAccuracy\": 100,\r\n\"disableElasticity\": false,\r\n\"disableStopDetection\": false,\r\n\"distanceFilter\": 30,\r\n\"elasticityMultiplier\": 1,\r\n\"enableHeadless\": false,\r\n\"extras\": {},\r\n\"fastestLocationUpdateInterval\": 1000,\r\n\"forceReloadOnBoot\": false,\r\n\"forceReloadOnGeofence\": false,\r\n\"forceReloadOnHeartbeat\": false,\r\n\"forceReloadOnLocationChange\": false,\r\n\"forceReloadOnMotionChange\": false,\r\n\"forceReloadOnSchedule\": false,\r\n\"foregroundService\": true,\r\n\"geofenceInitialTriggerEntry\": false,\r\n\"geofenceProximityRadius\": 1000,\r\n\"geofenceTemplate\": \"\",\r\n\"headers\": {},\r\n\"headlessJobService\": \"com.transistorsoft.cordova.bggeo.HeadlessJobService\",\r\n\"heartbeatInterval\": 60,\r\n\"httpRootProperty\": \"location\",\r\n\"httpTimeout\": 60000,\r\n\"isMoving\": false,\r\n\"locationTemplate\": \"\",\r\n\"locationTimeout\": 60,\r\n\"locationUpdateInterval\": 30000,\r\n\"locationsOrderDirection\": \"ASC\",\r\n\"logLevel\": 5,\r\n\"logMaxDays\": 3,\r\n\"maxBatchSize\": -1,\r\n\"maxDaysToPersist\": 1,\r\n\"maxRecordsToPersist\": -1,\r\n\"method\": \"POST\",\r\n\"minimumActivityRecognitionConfidence\": 50,\r\n\"notificationColor\": \"\",\r\n\"notificationLargeIcon\": \"\",\r\n\"notificationPriority\": 0,\r\n\"notificationSmallIcon\": \"\",\r\n\"notificationText\": \"en service\",\r\n\"notificationTitle\": \"Ootigo\",\r\n\"params\": {\r\n\"code_emetteur\": \"XXXXXX\",\r\n\"app_version\": \"2.6.5\"\r\n},\r\n\"persist\": true,\r\n\"schedule\": [],\r\n\"startOnBoot\": false,\r\n\"stationaryRadius\": 25,\r\n\"stopAfterElapsedMinutes\": 0,\r\n\"stopOnStationary\": false,\r\n\"stopOnTerminate\": true,\r\n\"stopTimeout\": 0,\r\n\"triggerActivities\": \"in_vehicle, on_bicycle, on_foot, running, walking\",\r\n\"url\": \"https:xxxxxxxxxxxxxxx.php\",\r\n\"enabled\": false,\r\n\"schedulerEnabled\": false,\r\n\"trackingMode\": 1,\r\n\"odometer\": 0,\r\n\"isFirstBoot\": true\r\n}\r\n\r\n\r\nHi everyone,\r\n\r\nI'm facing a really annoying issue: http connections are queued by Android (or Oneplus Oxygen layer) when my app is in the background.\r\n-http connections managed by the plugin work perfectly, even in the background\r\n-http connections managed by the javascript code work for a few minutes after the app is send to background, then stop, obviously queued by Android, and are trigerred when the app comes back to the foreground.\r\n\r\nBattery optimization is disabled.\r\nSurprisingly, there is a setup in android 8.1 to prevent/allow an app to transfer data when in background. Looks like this setup is ignored by my phone.\r\n\r\n\r\nI'm pretty sure this is NOT due to the plugin, but I would like to know if someone else faced this, or has ideas about this.\r\nThank you!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/comments/439103572","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/830#issuecomment-439103572","issue_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/830","id":439103572,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTEwMzU3Mg==","user":{"login":"christocracy","id":14999,"node_id":"MDQ6VXNlcjE0OTk5","avatar_url":"https://avatars1.githubusercontent.com/u/14999?v=4","gravatar_id":"","url":"https://api.github.com/users/christocracy","html_url":"https://github.com/christocracy","followers_url":"https://api.github.com/users/christocracy/followers","following_url":"https://api.github.com/users/christocracy/following{/other_user}","gists_url":"https://api.github.com/users/christocracy/gists{/gist_id}","starred_url":"https://api.github.com/users/christocracy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christocracy/subscriptions","organizations_url":"https://api.github.com/users/christocracy/orgs","repos_url":"https://api.github.com/users/christocracy/repos","events_url":"https://api.github.com/users/christocracy/events{/privacy}","received_events_url":"https://api.github.com/users/christocracy/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T16:34:08Z","updated_at":"2018-11-15T16:34:08Z","author_association":"MEMBER","body":"@locsim agreed.  @vladimircojuhari, this issue has *nothing to do with an app crash.*.  Open a new issue."}}
{"actor":{"display_login":"christocracy"}}