{"action":"opened","issue":{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/120","repository_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob","labels_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/120/comments","events_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/120/events","html_url":"https://github.com/wkh237/react-native-fetch-blob/issues/120","id":175030310,"number":120,"title":"uploadProgress Android","user":{"login":"allvintage","id":964303,"avatar_url":"https://avatars.githubusercontent.com/u/964303?v=3","gravatar_id":"","url":"https://api.github.com/users/allvintage","html_url":"https://github.com/allvintage","followers_url":"https://api.github.com/users/allvintage/followers","following_url":"https://api.github.com/users/allvintage/following{/other_user}","gists_url":"https://api.github.com/users/allvintage/gists{/gist_id}","starred_url":"https://api.github.com/users/allvintage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allvintage/subscriptions","organizations_url":"https://api.github.com/users/allvintage/orgs","repos_url":"https://api.github.com/users/allvintage/repos","events_url":"https://api.github.com/users/allvintage/events{/privacy}","received_events_url":"https://api.github.com/users/allvintage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-05T09:23:35Z","updated_at":"2016-09-05T09:23:35Z","closed_at":null,"body":"Hi,\r\n\r\nthank you for this awesome project. I'm having trouble with uploadProgress on Android and couldn't find any solutions in Issues or Wiki. On iOS everything is working fine, but on Android it seems as if the uploadProgress Handler is completely being ignored.\r\n\r\nI'm using this code to make a request to my server:\r\n\r\n`RNFetchBlob.fetch('POST', 'https://www.example.com', {\r\n\t'Content-Type' : 'application/json'\r\n}, JSON.stringify({myObject}))\r\n// listen to upload progress event\r\n.uploadProgress((written, total) => {\r\n    console.log('uploaded', written / total)\r\n})\r\n// listen to download progress event\r\n.progress((received, total) => {\r\n    console.log('progress', received / total)\r\n})\r\n.then((response) => response.json())\r\n.then((responseData) => {\r\n\tconsole.log(responseData);\r\n})\r\n.catch((err) => {\r\n\tconsole.log(err);\r\n});`\r\n\r\nSome information that might or might not be useful:\r\n\r\nmyObject contains all necessary information to authenticate on my remote server www.example.com (which returns JSON responses) and also includes rather large base64 encoded images. Because of this uploading can take a while, therefore I want to implement an upload progress indicator.\r\n\r\nAgain, on iOS everything works like a charm. On Android the uploadProgress event handler is not even being called. The download progress event handler works fine on Android and iOS. I'm running the app without simulators on an Android Nexus Phone and iPhone 6s directly.\r\n\r\nWhat am I missing?\r\n\r\nThank you in advance for your help!"}}
{"actor":{"display_login":"allvintage"}}