Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5534] iOS Document Viewer does not open PDF files (iOS 11.2)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2018-01-19T16:36:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMartyn Joyce
AssigneeShak Hossain
Created2018-01-19T15:48:08.000+0000
Updated2018-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

FileDateSize
IMG_3725.PNG2018-01-19T15:46:55.000+000079403
sample.pdf2018-01-19T15:50:14.000+00007945

Comments

  1. Hans Knöchel 2018-01-19

    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.

JSON Source