Bug on progress event.phase of network.upload on Android

I use the progress event.phase to update a progress widget during a image upload in my app.

I noticed that on iOS it works fine but on Android I only receive the 1 progress event.phase.

So, my progress widget starts, freezes and after few seconds, suddenly fulfill it all.

Is anyone seeing that same problem?

Output of a print inside the networkListener:

01-13 19:14:10.707: I/Corona(22521): networkListener - event.phase = began 01-13 19:14:10.707: I/Corona(22521): networkListener - event.bytesTransferred = 0 01-13 19:14:11.363: I/Corona(22521): networkListener - event.phase = progress 01-13 19:14:11.363: I/Corona(22521): networkListener - event.bytesTransferred = 1024 01-13 19:14:25.562: I/Corona(22521): networkListener - event.phase = ended 01-13 19:14:25.562: I/Corona(22521): networkListener - event.bytesTransferred = 1784783

I just noticed that the problem is solved if I use HTTP instead of HTTPS. 

(I though that it using bodyType = “binary” solved the problem but it did not)

Just submitted the bug (Case 29629)

I just noticed that the problem is solved if I use HTTP instead of HTTPS. 

(I though that it using bodyType = “binary” solved the problem but it did not)

Just submitted the bug (Case 29629)

If you set the progress parameter to “upload” then you get more frequent updates.

Thanks for the suggestion but I tried and that does not work.

The docs also says that the progress parameter is a boolean param.

params.progress Setting to true enables the progress events. Default is nil, indicating that only the "ended" phase event is desired. http://docs.coronalabs.com/api/library/network/upload.html

Sorry that was for network.request - if you set the progress parameter to “upload” it works.

I’ve got it working with that with frequent progress updates. Can post code when I’m back in front of the computer.

They should behave equal, since network.upload just call the network.request. The bug only happens when uploading using httpS.

UPDATE: I tried using network.request and the bug still exists

Apologies - I wasn’t using https

If you set the progress parameter to “upload” then you get more frequent updates.

Thanks for the suggestion but I tried and that does not work.

The docs also says that the progress parameter is a boolean param.

params.progress Setting to true enables the progress events. Default is nil, indicating that only the "ended" phase event is desired. http://docs.coronalabs.com/api/library/network/upload.html

Sorry that was for network.request - if you set the progress parameter to “upload” it works.

I’ve got it working with that with frequent progress updates. Can post code when I’m back in front of the computer.

They should behave equal, since network.upload just call the network.request. The bug only happens when uploading using httpS.

UPDATE: I tried using network.request and the bug still exists

Apologies - I wasn’t using https