xamarin / ios-samples

Xamarin.iOS sample apps
http://docs.microsoft.com/xamarin/ios/
Other
1.59k stars 1.92k forks source link

DidWriteData not being Called #406

Closed Akinnagbe closed 3 years ago

Akinnagbe commented 3 years ago

DidWriteData of UrlSessionDelegate in SimpleBackgroundTransfer in not being called, hence the percentage is not displaying on the UI.

tj-devel709 commented 3 years ago

Hello, I would first like to confirm that you are referring to the sample here.

We are looking into this now, but we would like to know what environment you are using.

To get full build logs just set the log verbosity to diagnostic at the following locations:

On Visual Studio for Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties.

Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.

The easiest way to get exact version information:

Then copy/paste the version information (you can use the "Copy Information" button).

We look forward to hearing from you!

chamons commented 3 years ago

Alright, we were able to get to the bottom of this. @Akinnagbe no need for version info.

It looks like the sample today requires either swapping to the non-interface base type (see #407) or adding the [Export] attributes you can get by typing override METHOD_NAME and letting intellisense complete it for you.

We are investigating if this is a regression (the sample is right and we broke behavior) or if the sample was written wrong.

Until then, you can use the model NSUrlSessionDownloadDelegate or add an export.