{ "id": "170829", "key": "AC-5534", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-01-19T16:36:39.000+0000", "created": "2018-01-19T15:48:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-19T16:36:40.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Document Viewer is not opening PDFs, instead it is showing a grey screen with the pdf filename. (see attached). The same result is usually seen when a pdf cannot be found.\r\n\r\nThis is affecting live apps that were working fine when uploaded, but now PDFs will not open. My assumption here is that it is due to iOS 11.2 but I have no confirmation on that.\r\n\r\nThe PDF opens correctly when viewing on a simulator, but not on device.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\nwin.open();\r\n\r\nvar docViewer = Ti.UI.iOS.createDocumentViewer({\r\n\turl: 'sample.pdf'\r\n});\r\n\r\ndocViewer.show();\r\n{code}\r\n\r\n\r\n\r\n", "attachment": [ { "id": "63978", "filename": "IMG_3725.PNG", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2018-01-19T15:46:55.000+0000", "size": 79403, "mimeType": "image/png" }, { "id": "63979", "filename": "sample.pdf", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2018-01-19T15:50:14.000+0000", "size": 7945, "mimeType": "application/pdf" } ], "flagged": false, "summary": "iOS Document Viewer does not open PDF files (iOS 11.2)", "creator": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "environment": "iOS 11.2.1, 11.2.2 (haven't been able to check earlier os versions)\r\nSDK 6.3.0, 7.0.1\r\nDevice Only, works correctly on Simulator\r\n", "comment": { "comments": [ { "id": "433333", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Apple unfortunately introduced a breaking change in 11.2 (that affects native apps the same as Titanium apps). We have a 7.0.2 SDK-patch and also non-SDK fix that doesn't require an SDK update in place, so check out more context in TIMOB-25680. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-19T16:36:40.000+0000", "updated": "2018-01-19T16:36:40.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }