{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/11853","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/11853/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/11853/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/11853/events","html_url":"https://github.com/facebook/react-native/issues/11853","id":200242780,"number":11853,"title":"Android xhr.upload.onprogress and addEventListener('progress') not supported?","user":{"login":"dguillamot","id":12869509,"avatar_url":"https://avatars.githubusercontent.com/u/12869509?v=3","gravatar_id":"","url":"https://api.github.com/users/dguillamot","html_url":"https://github.com/dguillamot","followers_url":"https://api.github.com/users/dguillamot/followers","following_url":"https://api.github.com/users/dguillamot/following{/other_user}","gists_url":"https://api.github.com/users/dguillamot/gists{/gist_id}","starred_url":"https://api.github.com/users/dguillamot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguillamot/subscriptions","organizations_url":"https://api.github.com/users/dguillamot/orgs","repos_url":"https://api.github.com/users/dguillamot/repos","events_url":"https://api.github.com/users/dguillamot/events{/privacy}","received_events_url":"https://api.github.com/users/dguillamot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-11T23:58:49Z","updated_at":"2017-01-13T00:19:14Z","closed_at":null,"body":"### Description\r\n\r\nWe are doing XMLHttpRequest PUT request (sending base64 encoded image data, setting content type header, etc).\r\n\r\niOS sends progress updates, Android does not. \r\n\r\nWe tried setting progress listener the following ways:\r\n\r\nxhr.addEventListener('progress')\r\nxhr.upload.addEventListener('progress')\r\nxhr.upload.onprogress = () => {}\r\nxhr.onprogress = () => {}\r\n\r\nNone of these handlers end up being called on Android, however on iOS they work fine. \r\n\r\nThe request completes successfully with a 200. \r\n\r\n### Reproduction\r\n\r\n\r\n\r\n### Solution\r\n\r\n\r\n\r\n### Additional Information\r\n\r\n* React Native version: 0.39.2\r\n* Platform: both Android and iOS tested (issue only on Android)\r\n* Operating System: MacOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/272325424","html_url":"https://github.com/facebook/react-native/issues/11853#issuecomment-272325424","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11853","id":272325424,"user":{"login":"dguillamot","id":12869509,"avatar_url":"https://avatars.githubusercontent.com/u/12869509?v=3","gravatar_id":"","url":"https://api.github.com/users/dguillamot","html_url":"https://github.com/dguillamot","followers_url":"https://api.github.com/users/dguillamot/followers","following_url":"https://api.github.com/users/dguillamot/following{/other_user}","gists_url":"https://api.github.com/users/dguillamot/gists{/gist_id}","starred_url":"https://api.github.com/users/dguillamot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguillamot/subscriptions","organizations_url":"https://api.github.com/users/dguillamot/orgs","repos_url":"https://api.github.com/users/dguillamot/repos","events_url":"https://api.github.com/users/dguillamot/events{/privacy}","received_events_url":"https://api.github.com/users/dguillamot/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T00:19:14Z","updated_at":"2017-01-13T00:19:14Z","body":"Ended up moving to a native (Obj-c and Java) solution for now which does provide upload progress events on Android. \r\n\r\nRegarding XmlHttpRequest, not sure if the Android interface is different from iOS or not but no luck with XmlHttpRequest updateProgress on Android."}}
{"actor":{"display_login":"dguillamot"}}