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

Background Downloads Tutorial (iOS) Not Working #27

Closed
relaxxpls opened this issue Jan 26, 2024 · 1 comment
Closed

Background Downloads Tutorial (iOS) Not Working #27

relaxxpls opened this issue Jan 26, 2024 · 1 comment
Labels
P1 High priority issue. Ready Ready for release.

Comments

@relaxxpls
Copy link

The documentation here seems to be outdated.

I have tried using the following code

#import <ReactNativeFs.h>

- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)())completionHandler
{
  [ReactNativeFs setCompletionHandlerForIdentifier:identifier completionHandler:completionHandler];
}

This fails aswell due to

No known class method for selector 'setCompletionHandlerForIdentifier:completionHandler:'

@birdofpreyru Are any additional steps needed for iOS?

@birdofpreyru birdofpreyru added the P2 Important issue. label Jan 26, 2024
@birdofpreyru birdofpreyru added P1 High priority issue. and removed P2 Important issue. labels Jan 28, 2024
@birdofpreyru birdofpreyru added the Ready Ready for release. label Jan 29, 2024
@birdofpreyru
Copy link
Owner

The «Background downloads» feature is fixed in v2.23.0 (requires minor changes in the host app code), and it is tested and works for me in the Example App. That does not mean there is no other problems with downloadFile() (i.e. #24) — I haven't looked deeper into that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority issue. Ready Ready for release.
Projects
None yet
Development

No branches or pull requests

2 participants