Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

DidWriteData not being Called #406

Closed
Akinnagbe opened this issue Oct 28, 2020 · 2 comments · Fixed by #410
Closed

DidWriteData not being Called #406

Akinnagbe opened this issue Oct 28, 2020 · 2 comments · Fixed by #410
Assignees
Milestone

Comments

@Akinnagbe
Copy link

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

@tj-devel709 tj-devel709 added this to the Future milestone Oct 28, 2020
@tj-devel709
Copy link

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 Mac: Preferences > Projects > Build
  • On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

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:

  • On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
  • On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.

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

We look forward to hearing from you!

@tj-devel709 tj-devel709 added need-info Waiting for more information before the bug can be investigated and removed need-info Waiting for more information before the bug can be investigated labels Oct 28, 2020
@chamons
Copy link
Contributor

chamons commented Oct 28, 2020

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.

@chamons chamons self-assigned this Oct 28, 2020
chamons added a commit that referenced this issue Nov 2, 2020
…electors

- Fixes #406
- Optional protocol methods must export if you use IFoo instead of Foo base class
chamons added a commit that referenced this issue Nov 3, 2020
…electors (#410)

- Fixes #406
- Optional protocol methods must export if you use IFoo instead of Foo base class
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants