{ "id": "146637", "key": "TIMOB-18780", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-04-08T21:20:07.000+0000", "created": "2015-04-06T18:01:59.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T05:02:46.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Feature Request \r\nAdd 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. \r\n{code}\r\n[INFO] e{\"taskIdentifier\":1,\"data\":{},\"bubbles\":true,\"type\":\"downloadcompleted\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] sessioncompleted {\"errorCode\":0,\"taskIdentifier\":1,\"message\":\"\",\"success\":true,\"bubbles\":true,\"type\":\"sessioncompleted\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] Downloads completed successfully.\r\n[INFO] Download task :1 completed, success ? : true\r\n{code}\r\n\r\nh6.Appcelerator Docs\r\nhttp://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Background_Services \r\n\r\nh6.Sample Code\r\nhttps://gist.github.com/egomez99/2d968326454e0dd8401c\r\n\r\nh6.Additional info\r\ndownloadcompleted event currently only supports Titanium.Blob data type for a download nsurlsession task. \r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.App.iOS-event-downloadcompleted \r\n\r\nh6.Apple Docs\r\nhttps://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html \r\n\r\nhttps://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html#//apple_ref/doc/uid/10000165i", "attachment": [], "flagged": false, "summary": "iOS: Add ability for Background Fetch tasks to support JSON responses", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "348973", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use JSON.stringify and Blob.text methods to convert blob data to JSON", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-08T21:20:07.000+0000", "updated": "2015-04-08T21:20:07.000+0000" }, { "id": "411965", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T05:02:46.000+0000", "updated": "2017-03-14T05:02:46.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }