[AC-5534] iOS Document Viewer does not open PDF files (iOS 11.2)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2018-01-19T16:36:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Martyn Joyce |
Assignee | Shak Hossain |
Created | 2018-01-19T15:48:08.000+0000 |
Updated | 2018-01-19T16:36:40.000+0000 |
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.
This 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.
The PDF opens correctly when viewing on a simulator, but not on device.
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
win.open();
var docViewer = Ti.UI.iOS.createDocumentViewer({
url: 'sample.pdf'
});
docViewer.show();
Attachments
File | Date | Size |
---|---|---|
IMG_3725.PNG | 2018-01-19T15:46:55.000+0000 | 79403 |
sample.pdf | 2018-01-19T15:50:14.000+0000 | 7945 |
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.