alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 27 forks source link

Upload progress - NativeMessageHandler.RegisterForProgress #82

Open davidtabor90 opened 2 years ago

davidtabor90 commented 2 years ago

Hi,

in our Xamarin.Android app we use ModernHttpClient and now we want to show upload progress.

If we set progress delegate (RegisterForProgress) it's invoked only once at the end of request with all values (bytes, totalBytes, totalBytesExpected) set to 0.

Can you help me, where should be the problem?

Should be the problem that POSTed data is StringContent with JSON?

PS: iOS will be next.

Thanks, David