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 downloading on IOS #19

Open
7ammer opened this issue May 8, 2018 · 6 comments
Open

Background downloading on IOS #19

7ammer opened this issue May 8, 2018 · 6 comments

Comments

@7ammer
Copy link
Contributor

7ammer commented May 8, 2018

Hello :)
Can this module do background downloading for IOS? It looks like android can achieve this but I can't seem to get the same result on IOS.
Cheers

Which platform(s) does your issue occur on?

IOS simulator's, not tried on a real device yet.

Please, provide the following version numbers that your issue occurs with:

CLI 4.0.0

"tns-android": {
  "version": "3.4.2"
},
"tns-ios": {
    "version": "3.4.1"
}
"tns-core-modules": "~3.4.1",
"nativescript-theme-core": "^1.0.4",
"nativescript-vue": "^1.3.1",
"tns-core-modules": "~3.4.1",
"nativescript-fonticon": "^1.1.1",
"nativescript-gradient": "^2.0.1",
"nativescript-localstorage": "^1.1.5",
"nativescript-social-share": "^1.5.0",
"nativescript-videoplayer": "^4.0.0",
"nativescript-webview-interface": "^1.4.2",
"nativescript-audio": "^4.3.5",
"nativescript-animated-circle": "^1.1.0",
"nativescript-downloader": "^2.0.0"
@shivgolani
Copy link

@7ammer @triniwiz Background Downloading for IOS is not working. Any alternatives?

@nicHoch
Copy link

nicHoch commented Jul 2, 2018

background download on IOS would be nice!

@triniwiz
Copy link
Owner

triniwiz commented Jul 2, 2018

I'll look into it

@7ammer
Copy link
Contributor Author

7ammer commented Aug 29, 2019

Hello @triniwiz 👋

Thanks for this package and your time. I was just wondering if you had any further thoughts on this.

Many Thanks

@7ammer
Copy link
Contributor Author

7ammer commented Oct 18, 2019

Hello
After messing around with NSURLSession for a while it seems that this issue maybe due to this package's use of NSURLSessionConfiguration.defaultSessionConfiguration instead of NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier.

I see that you've actually written it but commented it out in the code:

// NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier("NSDownloader");
.
I was wondering what the cause was for commenting it out and if we could apply it again?

Many thanks

@7ammer
Copy link
Contributor Author

7ammer commented Apr 9, 2020

Hello 👋

It looks like updating AFNetworking to '4.0' resolves this issue!

See my pull request:
#45

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

No branches or pull requests

4 participants