{"action":"created","issue":{"url":"https://api.github.com/repos/mendhak/gpslogger/issues/382","repository_url":"https://api.github.com/repos/mendhak/gpslogger","labels_url":"https://api.github.com/repos/mendhak/gpslogger/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/mendhak/gpslogger/issues/382/comments","events_url":"https://api.github.com/repos/mendhak/gpslogger/issues/382/events","html_url":"https://github.com/mendhak/gpslogger/issues/382","id":135062949,"number":382,"title":"Android 6.0: Logging stops after period of inactivity","user":{"login":"xconstruct","id":54525,"avatar_url":"https://avatars.githubusercontent.com/u/54525?v=3","gravatar_id":"","url":"https://api.github.com/users/xconstruct","html_url":"https://github.com/xconstruct","followers_url":"https://api.github.com/users/xconstruct/followers","following_url":"https://api.github.com/users/xconstruct/following{/other_user}","gists_url":"https://api.github.com/users/xconstruct/gists{/gist_id}","starred_url":"https://api.github.com/users/xconstruct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xconstruct/subscriptions","organizations_url":"https://api.github.com/users/xconstruct/orgs","repos_url":"https://api.github.com/users/xconstruct/repos","events_url":"https://api.github.com/users/xconstruct/events{/privacy}","received_events_url":"https://api.github.com/users/xconstruct/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mendhak/gpslogger/labels/bug","name":"bug","color":"e102d8"},{"url":"https://api.github.com/repos/mendhak/gpslogger/labels/discuss","name":"discuss","color":"d7e102"},{"url":"https://api.github.com/repos/mendhak/gpslogger/labels/feature","name":"feature","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mendhak/gpslogger/milestones/1","html_url":"https://github.com/mendhak/gpslogger/milestones/v72","labels_url":"https://api.github.com/repos/mendhak/gpslogger/milestones/1/labels","id":1608873,"number":1,"title":"v72","description":null,"creator":{"login":"mendhak","id":746276,"avatar_url":"https://avatars.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":8,"state":"open","created_at":"2016-02-26T22:19:32Z","updated_at":"2016-03-06T22:52:48Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-02-20T11:30:01Z","updated_at":"2016-03-06T22:54:13Z","closed_at":"2016-03-06T22:52:47Z","body":"First of all, thank you for your awesome app, I've been using it non-stop for over a year.\r\n\r\nI'm afraid I have another task-killer bug for you. Recently I upgraded to Android 6.0 (CM 13) and over night GPSLogger suddenly stops logging, and I have to start it manually again. This happens every night. Looks like it is related to the new Doze mode in 6.0. Here are a few infos:\r\n\r\n* Notification is enabled and it stays, but only showing \"GPSLogger is running\"\r\n* Location mode is set to \"High Accuracy\"\r\n* I've disabled Android 6.0 Battery Optimization by setting the app to \"Not Optimized\"\r\n* My device is plugged-in and charging the whole time\r\n* RAM is averaging around 1.5 of 2 GB\r\n* The debug log shows that the logging stops almost exactly 1 hour after I last used my device (every time)\r\n\r\nAddendum: I'm currently testing it further. It's strange, looks like it happens *only* when charging - if I leave my phone unplugged for the night, it still works as expected.\r\n\r\nDebug log excerpt (last logging attempt + manual restart in the morning):\r\n\r\n```\r\n01:49:59 INFO  GpsLoggingService.StartGpsManager:558 - Requesting GPS location updates\r\n01:49:59 INFO  GpsLoggingService.StartGpsManager:569 - Requesting cell and wifi location updates\r\n01:49:59 INFO  GeneralLocationListener.onGpsStatusChanged:133 - GPS started, waiting for fix\r\n01:50:00 DEBUG GpsLoggingService.OnLocationChanged:731 - Has description? false, Single point? false, Last timestamp: 1455669599608\r\n01:50:00 INFO  GpsLoggingService.OnLocationChanged:809 - XX.XXXXXXX,X.XXXXXX\r\n01:50:00 INFO  GpsLoggingService.ResetCurrentFileName:686 - Filename: 20160217\r\n01:50:00 DEBUG GpsLoggingService.WriteToFile:925 - Calling file writers\r\n01:50:00 DEBUG Gpx10WriteHandler.run:231 - Finished writing to GPX10 file\r\n01:50:00 DEBUG GpsLoggingService.StopGpsManager:629 - Removing towerLocationManager updates\r\n01:50:00 DEBUG GpsLoggingService.StopGpsManager:634 - Removing gpsLocationManager updates\r\n01:50:00 DEBUG GpsLoggingService.SetAlarmForNextPoint:904 - Set alarm for 600 seconds\r\n01:50:00 DEBUG GpsLoggingService.OnLocationChanged:731 - Has description? false, Single point? false, Last timestamp: 1455670200629\r\n01:50:00 DEBUG GeneralLocationListener.onGpsStatusChanged:128 - 21 satellites\r\n01:50:00 DEBUG CustomUrlJob.onRun:75 - Sending to URL: https://REDACTED/?latitude=XX.XXXXX&longitude=X.XXXXX&timestamp=2016-02-17T00:50:00Z&accuracy=24.570999145507813&s=0.0\r\n01:50:01 DEBUG CustomUrlJob.onRun:97 - Status code: 200\r\n01:54:51 DEBUG GpsLoggingService.OnLocationChanged:731 - Has description? false, Single point? false, Last timestamp: 1455670200629\r\n10:21:16 DEBUG GpsMainActivity.PopulateProfilesList:504 - Current profile:Default Profile\r\n10:21:17 DEBUG GpsMainActivity.PopulateProfilesList:504 - Current profile:Default Profile\r\n10:21:17 DEBUG GpsMainActivity$13.onServiceConnected:1042 - Connected to GPSLoggingService from MainActivity\r\n10:21:19 DEBUG GpsLoggingService.StartLogging:385 - .\r\n```"},"comment":{"url":"https://api.github.com/repos/mendhak/gpslogger/issues/comments/193011352","html_url":"https://github.com/mendhak/gpslogger/issues/382#issuecomment-193011352","issue_url":"https://api.github.com/repos/mendhak/gpslogger/issues/382","id":193011352,"user":{"login":"mendhak","id":746276,"avatar_url":"https://avatars.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T22:54:13Z","updated_at":"2016-03-06T22:54:13Z","body":"[Release v72](https://github.com/mendhak/gpslogger/releases/tag/v72)"}}