{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/840","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/840/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/840/comments","events_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/840/events","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/840","id":386059985,"node_id":"MDU6SXNzdWUzODYwNTk5ODU=","number":840,"title":"Clear or terminated from task manager","user":{"login":"Jitendranagar","id":6169697,"node_id":"MDQ6VXNlcjYxNjk2OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/6169697?v=4","gravatar_id":"","url":"https://api.github.com/users/Jitendranagar","html_url":"https://github.com/Jitendranagar","followers_url":"https://api.github.com/users/Jitendranagar/followers","following_url":"https://api.github.com/users/Jitendranagar/following{/other_user}","gists_url":"https://api.github.com/users/Jitendranagar/gists{/gist_id}","starred_url":"https://api.github.com/users/Jitendranagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jitendranagar/subscriptions","organizations_url":"https://api.github.com/users/Jitendranagar/orgs","repos_url":"https://api.github.com/users/Jitendranagar/repos","events_url":"https://api.github.com/users/Jitendranagar/events{/privacy}","received_events_url":"https://api.github.com/users/Jitendranagar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T06:48:18Z","updated_at":"2018-11-30T17:03:03Z","closed_at":null,"author_association":"NONE","body":"\r\n## Your Environment\r\n• Plugin version:2.13.2\r\n• * Platform:  Android\r\n• * OS version: 5.1 above\r\n• * Device manufacturer / model:Vivo,oppo,redmi,xiaomi\r\n• * Cordova version (`cordova -v`):8.0.0\r\n• * Android Platform version:7.0.0\r\n• * hybrid platform: Ionic 3\r\n\r\n• Plugin config    \r\n•   isMoving: false,  \r\n•  autoSync: true,   \r\n•  elasticityMultiplier: 1,   \r\n•   stopTimeout: 5,  \r\n•  stopOnStationary: false,     \r\n•  stopOnTerminate: false,    \r\n•  debug: false,    \r\n•  disableElasticity: false,   \r\n• fastestLocationUpdateInterval: 50000,        \r\n• maxDaysToPersist: 3, \r\n• distanceFilter: 10,        \r\n• desiredAccuracy: 0,      \r\n• motionActivity: 'Activity',     \r\n• menuActive: false,   \r\n• heartbeatInterval: 60,        \r\n• autoSyncThreshold: 0,       \r\n• logLevel: this.bgGeo.LOG_LEVEL_VERBOSE\r\n\r\n## Expected BehaviorApp should fetch location information when app is terminated.\r\n\r\n## Actual BehaviorWhen I cleared or terminated from the task manger so background location plugin not get a location in vivo or mi phones and background service are also closed. But in Samsung mobile it is working properly.\r\n"},"comment":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/comments/443269937","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/840#issuecomment-443269937","issue_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/840","id":443269937,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzI2OTkzNw==","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-30T17:03:03Z","updated_at":"2018-11-30T17:03:03Z","author_association":"MEMBER","body":"Chinese devices are the worst.  You generally need to manually \"Whitelist\" these apps (usually in Settings->Battery) and tell the operating system to let your app run in the background.\r\n\r\nOn my Huawei P20, it's like this:  \r\n- `Settings->Battery->Launch`\r\n- Find your app.  toggle switch to disable \"automatically manage\".\r\n![](https://dl.dropboxusercontent.com/s/7t1dmpc95qqgngi/Screenshot%202018-11-30%2011.57.49.png?dl=1)\r\n\r\nOn my Xiaomi A2 Lite, I didn't have to do anything.  It works without problem.\r\n\r\n"}}
{"actor":{"display_login":"christocracy"}}