[AC-6313] Ti.urlSession outdated
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | module, urlsession |
Reporter | Alexander |
Assignee | Shak Hossain |
Created | 2019-07-19T10:32:38.000+0000 |
Updated | 2019-11-14T15:46:51.000+0000 |
Description
my app uses ti.urlsession v2.2.0 and it crashes while downloading in the background after a short period (30s) with this log:
Forcing crash report with description: APPNAME:500 has active assertions beyond permitted time:
(owner: nsurlsessiond:111)
the method "backgroundSessionConfiguration" is deprecated according to:
https://developer.apple.com/documentation/foundation/urlsessionconfiguration
is the module ti.urlSession still up to date?
Attachments
File | Date | Size |
---|---|---|
testurlsession2.zip | 2019-08-22T10:48:21.000+0000 | 8644111 |
Hello [~Alexander Baars], Thanks for reaching out to us. It would be great if you can share a sample test code and complete console logs which will be helpful reproduce the issue on our end.
Hello! Hope you are doing fine today. Would you please reply us regarding previous reviews? We are looking forward to your response.
Hello, I created a test app with the sample from the urlsession module. (added) The sample is slightly unfinished. Some logging renders undefined, the localnotification registration is missing. I changed the images downloads for (larger) audio files for test purposes. Steps to reproduce: If a download is started from the rightnav button and the app is pushed to the background subsequently, before de download finishes, this happens: The app finishes the download and saves the file. Afterwards the app is killed by the OS after a background permission expiration warning. Besides that, I never get a backgroundfetch trigger. If I use xCode to fake one the app continues working. The "Simulate Background Fetch" in Xcode triggers a backgroundTransfer event (not backgroundFetch). The background permission expiration warning is followed by: Active assertions exist beyond permitted time, but process is being debugged; Logging: 12:42:58.098141 +0200 0 [testurlsession2:14622] Sending background permission expiration warning! 62 com.apple.assertiond assertiond 12:43:03.095284 +0200 0 [testurlsession2:14622] Forcing crash report with description: testurlsession2:14622 has active assertions beyond permitted time:
any comments?
[~Alexander Baars], Did you manage to test this on 8.1.1.GA and let us know the results.
i did test it on 8.1.1.GA and 8.2.0.GA both result in the same issue. While downloading push the app to the background, the download finishes but app crashes right after.
Do you have a solution for my problem? regards, Alexander Baars