Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting downloads and using the sharing extension gives errors #4

Open
crspybits opened this issue Feb 18, 2021 · 0 comments
Open

Comments

@crspybits
Copy link
Member

I see error messages (alerts). This is what I see in the logs:
2021-02-11 22:46:33.875 [Error] [main] [ServerInterface.swift:103] userEvent(_:event:) > Optional(iOSBasics.SyncServerError.internalError("Could not get ObjectDownloadHandler for DownloadObjectTracker"))

I wonder if what is going on is that (a) the background URLSession is being setup in the sharing extension, but (b) the rest of the needed setup is not happening. If that is true, then could I deal with this by not setting up the background URL session while the sharing extension is active?
Hmmm. That doesn’t seem possible given the way things are organized right now. The background URL session is needed to queue up new uploads.
try AnyTypeManager.session.setup() is currently called in LocalServices. And AnyTypeManager does the setup needed for the ObjectDownloadHandler’s.
See also https://stackoverflow.com/questions/66189620/ios-sharing-extensions-background-urlsessions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant