{ "id": "160045", "key": "TIMOB-23319", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-23T18:37:20.000+0000", "created": "2016-05-05T06:20:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "54290", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "165177", "key": "TIMOB-24272", "fields": { "summary": "Universal Windows App (UWP) - Ability to display PDF in webview", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T16:58:23.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Currently, {{Ti.Platform.openURL}} will attempt to open the a URI using {{LaunchUriAsync}}. However, certain file types won't open.\r\n\r\nShould we allow the content-type to be specified? We could also use https://msdn.microsoft.com/en-us/library/windows/apps/hh701471.aspx\r\n\r\n{code}\r\n var xhr = Ti.Network.createHTTPClient();\r\n xhr.setTimeout(6e4);\r\n\r\n xhr.onload = function (e) {\r\n var to = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'goalsetting.pdf');\r\n to.write(xhr.responseData);\r\n\r\n Ti.Platform.openURL('ms-appdata:///local/goalsetting.pdf');\r\n };\r\n xhr.onerror = function (e) {\r\n alert('FAILED TO DOWNLOAD');\r\n };\r\n\r\n xhr.open('GET', 'http://bdrconsultants.com/goalsetting.pdf');\r\n xhr.send();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Ti.Platform.openURL does not open some media files", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 854, "state": "closed", "name": "2017 Sprint 06 SDK", "startDate": "2017-03-12T19:14:58.337Z", "endDate": "2017-03-26T19:14:00.000Z", "completeDate": "2017-03-26T22:01:15.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "407084", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/955", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-15T10:34:37.000+0000", "updated": "2017-02-15T10:34:37.000+0000" }, { "id": "415554", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix verified in 6.1.0.v20170323174407, Test steps and other information can be found in: https://github.com/appcelerator/titanium_mobile_windows/pull/955", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T16:58:17.000+0000", "updated": "2017-03-24T16:58:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }