{ "id": "142258", "key": "TIMOB-18304", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-01-05T20:00:21.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "docs", "ios", "parity", "qe-3.5.0", "simulator" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "44454", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136376", "key": "TIMOB-17670", "fields": { "summary": "iOS8: DocumentViewer not displaying PDF files", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:55:05.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "DocX files will load on iOS devices, but not on simulators. The documentation says that XML versions (DocX) are not supported. However, they do load on devices.\r\n\r\n*Steps to reproduce issue*:\r\n1. Install the sample app and launch it\r\n2. Click on Launch Doc\r\n3. Click Done\r\n4. Click Launch DocX\r\n\r\n*Actual Results*:\r\n2. The file is loaded\r\n4. The file is loaded only on devices; not on simulator\r\n\r\n*Expected Results*:\r\nThe DocX file should have the same behavior on both platforms or the documentation should be updated to indicate the discrepancy in parity.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow(); \r\n// Use a NavigationWindow to create a navigation bar for the window \r\nvar navWin = Ti.UI.iOS.createNavigationWindow({window: win}); \r\n\r\nvar navButton = Titanium.UI.createButton({title:'Launch'}); \r\nwin.RightNavButton = navButton; \r\n\r\nvar docXButton = Titanium.UI.createButton({ \r\ntitle:'Launch DocX', \r\nheight:40, \r\nwidth:200, \r\ntop:230 \r\n}); \r\nwin.add(docXButton); \r\n\r\nvar docButton = Titanium.UI.createButton({ \r\ntitle:'Launch Doc', \r\nheight:40, \r\nwidth:200, \r\ntop:180 \r\n}); \r\nwin.add(docButton);\r\n\r\nvar pdfButton = Titanium.UI.createButton({ \r\ntitle:'Launch PDF', \r\nheight:40, \r\nwidth:200, \r\ntop:280 \r\n}); \r\nwin.add(pdfButton); \r\n\r\n// Create a document viewer to preview a PDF file \r\ndocViewer = Ti.UI.iOS.createDocumentViewer(); \r\n// Opens the options menu and when the user clicks on 'Quick Look' \r\n// the document viewer launches with an animated transition \r\nnavButton.addEventListener('click', function(){ \r\n\tdocViewer.show({view:navButton, animated: true}); \r\n}); \r\n// The document viewer immediately launches without an animation \r\ndocButton.addEventListener('click', function(){\r\n\tdocViewer.url = 'test1.doc';\r\n\tdocViewer.show();\r\n\t}); \r\n// The document viewer immediately launches without an animation \r\ndocXButton.addEventListener('click', function(){\r\n\tdocViewer.url = 'test1.docx';\r\n\tdocViewer.show();\r\n\t}); \r\npdfButton.addEventListener('click', function(){\r\n\tdocViewer.url = 'test.pdf';\r\n\tdocViewer.show();\r\n\t}); \r\n\r\nnavWin.open();\r\n{code}\r\n\r\nSample files attached.", "attachment": [ { "id": "53406", "filename": "test.zip", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-05T20:00:21.000+0000", "size": 4464314, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: DocumentViewer not displaying DOCX files on Simulator", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.0.v20141222103320\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1\r\n\r\nOn: \r\niPad mini, iOS 8.1\r\niPhone 6, iOS 8.2b3\r\niPhone 4S Sim, iOS 8.1", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }