[TIMOB-19596] Cannot load docx into webview from SDK3.4.x
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Won't Do |
| Resolution Date | 2019-11-19T22:36:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | docx, webview |
| Reporter | Phil Delalande |
| Assignee | Unknown |
| Created | 2014-11-18T03:02:36.000+0000 |
| Updated | 2019-11-19T22:36:52.000+0000 |
Description
What worked up to SDK3.3.x is I could load a hosted docx file in a webview.
var webview = Titanium.UI.createWebView({url:'link/to/file.docx'});
From SDK3.4.x it starts loading the document up to the first table, then times out with this console error:
[DEBUG] : New scheme: <NSMutableURLRequest: 0x78fbeec0> { URL: http://www.myurl.com/.../b4b8bfcee.docx }
[DEBUG] : 2014-11-18 10:53:48.814 myApp[61079:13647576] *** Assertion failure in +[WMTableCellStyle resolveStyleColorWithPercentage:foregroundColor:backgroundColor:], /SourceCache/OfficeImport_Sim/OfficeImport-222/qlviewer/WordMapper/WMTableCellStyle.mm:272
[DEBUG] : 2014-11-18 10:53:48.820 myApp[61079:13647576] EXCEPTION NSInternalInconsistencyException: Foreground color is not set.
I am generating docx files with phpWord and there is no Foreground Color attribute that can be set.
Hello, I have tested this issue in updated environment. This works fine for iOS but not working in android . *Test Environments:* Operating System= Mac OS X, Version 10.10.1 CLI Version = 4.0.1 Titanium SDK Version = 4.1.0.GA Android: Google Galaxy Nexus - 4.1.1 - API 16 - 720x1280 Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 iOS SDK: 8.1,iOS Simulator: iPhone 4s *Test code:* app.js
Thanksvar win1 = Ti.UI.createWindow(); var document = Ti.UI.createWebView({ url: 'test_document.docx', }); win1.add(document); win1.open();Closing issue as "Won't do." This is by design. Android does not support docx files for web view.