Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2328] iOS: Refactor Ti.URLSession, allow background uploads

GitHub Issuen/a
Resolution Date2017-05-14T11:38:35.000+0000
Affected Version/sn/a
Fix Version/sTi.URLSession 2.1.0
Labelsios, urlsession
ReporterHans Knöchel
AssigneeHans Knöchel


This is an improvements I was working on a few months ago. It allows people to perform background uploads (together with the already existing background download functionality). While working on it, I also deprecated the old API to have a unifies URLSession api that does it's operations on "Session" objects instead of having all methods on the module top level. I also exposed all other possible properties and methods around it, so people can use all the sugar from the NSURLSession API in Titanium. Thankfully, [~rlustemberg] also did a PR to the core to receive the upload responses from the uploads in [here](https://github.com/appcelerator/titanium_mobile/pull/8860). Together with my module PR [here](https://github.com/appcelerator-modules/ti.urlsession/pull/9), the functionality is completely implemented by now and can be reviewed.


  1. Hans Knöchel 2017-03-08

    PR (titanium_mobile/master): https://github.com/appcelerator/titanium_mobile/pull/8860 PR (ti.urlsession/master): https://github.com/appcelerator-modules/ti.urlsession/pull/9 Test-Case (deprecated - should still work): https://github.com/appcelerator-modules/ti.urlsession/blob/master/ios/example/app.js Test-Case (new one - should be no deprecation warnings: https://github.com/hansemannn/ti.urlsession/blob/ba8c3075f663787219b68e0de4fc817fddf26f1c/ios/example/app.js
  2. Hans Knöchel 2017-03-15

    [~ewieber] [~amukherjee] This PR is now labeled for QE-testing.
  3. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source