{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/android/issues/1766","repository_url":"https://api.github.com/repos/owncloud/android","labels_url":"https://api.github.com/repos/owncloud/android/issues/1766/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/android/issues/1766/comments","events_url":"https://api.github.com/repos/owncloud/android/issues/1766/events","html_url":"https://github.com/owncloud/android/issues/1766","id":171001871,"number":1766,"title":"Instant Upload fails when phone goes to sleep","user":{"login":"SakadiwaaSoftware","id":12443541,"avatar_url":"https://avatars.githubusercontent.com/u/12443541?v=3","gravatar_id":"","url":"https://api.github.com/users/SakadiwaaSoftware","html_url":"https://github.com/SakadiwaaSoftware","followers_url":"https://api.github.com/users/SakadiwaaSoftware/followers","following_url":"https://api.github.com/users/SakadiwaaSoftware/following{/other_user}","gists_url":"https://api.github.com/users/SakadiwaaSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/SakadiwaaSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SakadiwaaSoftware/subscriptions","organizations_url":"https://api.github.com/users/SakadiwaaSoftware/orgs","repos_url":"https://api.github.com/users/SakadiwaaSoftware/repos","events_url":"https://api.github.com/users/SakadiwaaSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/SakadiwaaSoftware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-13T09:47:26Z","updated_at":"2016-08-16T08:35:18Z","closed_at":null,"body":"A video is recorded or photo is taken and instant upload kicks in. The phone is put into sleep mode and next time it is woken up OwnCloud displays an error message. Upload failed 'app was terminated'.\r\n\r\nPresumably Android is terminating the service when the phone goes into sleep mode. I understand that the desktop client breaks files down into chunks for uploading. Could the Android client not implement the same behaviour? Then the service could be created as START_STICKY and resume uploading from the previous chunk when it gets restarted. This would also help when switching between wifi hotspots or moving from wifi to cellular data.\r\n\r\nThe issue is occurring on a Samsung Galaxy J7 with Android Marshmallow"},"comment":{"url":"https://api.github.com/repos/owncloud/android/issues/comments/240037924","html_url":"https://github.com/owncloud/android/issues/1766#issuecomment-240037924","issue_url":"https://api.github.com/repos/owncloud/android/issues/1766","id":240037924,"user":{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T08:35:18Z","updated_at":"2016-08-16T08:35:18Z","body":"Hi, @SakadiwaaSoftware . Probably this is due to Doze. We plan to make some improvements about the operation of the app when the device goes to sleep mode right for the next release, but I  can't tell you right now how far we'll get with them in the first iteration."}}
{"actor":{"display_login":"davivel"}}