Add ability to get a JSON response for Background Fetch task. When you try to use same url using url session module, response doesn't contain text instead of data as empty JS object of "downloadcompleted" event.
[INFO] e{"taskIdentifier":1,"data":{},"bubbles":true,"type":"downloadcompleted","source":{},"cancelBubble":false}
[INFO] sessioncompleted {"errorCode":0,"taskIdentifier":1,"message":"","success":true,"bubbles":true,"type":"sessioncompleted","source":{},"cancelBubble":false}
[INFO] Downloads completed successfully.
[INFO] Download task :1 completed, success ? : true
downloadcompleted event currently only supports Titanium.Blob data type for a download nsurlsession task.
Use JSON.stringify and Blob.text methods to convert blob data to JSON
Closing ticket as the issue is not our bug.