[TIMOB-23116] iOS: Add sessionIdentifier to URLSession events
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-03-28T17:11:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0 |
Components | iOS |
Labels | ios, nsurlsession, qe-5.4.0, sessionIdentifier |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2016-03-27T16:02:58.000+0000 |
Updated | 2016-08-05T17:52:54.000+0000 |
Description
There is a community PR to add the
sessionIdentifier
to the URLSession: https://github.com/appcelerator/titanium_mobile/pull/6941
We need to do the following:
* Nil-validations for the case that the sessionIdentifier is nil
* The docs for the new property, as well as the docs for the uploadprogress event
* The missing dictionary in URLSessionDidFinishEventsForBackgroundURLSession.
PR: https://github.com/appcelerator/titanium_mobile/pull/7889
Test-case: 1. Follow [this guide](http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Background_Services-section-37539664_iOSBackgroundServices-URLSessionModule) to use the urlSession module with Titanium 2. Inside the
downloadprogress
anddownloadcompleted
event, watch out for thesessionIdentifier
property when it is called.[~hansknoechel] I am getting an invalid session error when testing the sessionIdentifier.
Error
ENV
App.js used
[~jlongton] The error log you are showing seems like it's involved with appc-platform-sdk, may not have anything to do with this ticket. Can you verify: 1. If you are on preprod or prod 2. Try using appc cli core 5.3.1
Verified as fixed, the error is not present now. Tested on:
*Closing ticket*