xeokit/xeokit-bim-viewer

Pako "unknown compression method" when loading a .xkt file inside a WKWebView on iOS

jstart opened this issue · 0 comments

I am trying to use xeokit within a web view in a native iOS application. The sdk is propery loaded into the safari/webkit view and displays the controls and UI as expected. However, when window.bimViewer.loadProject is called, when the SDK attempts to decompress the xkt, I receive the error "unknown compression method". The pako library is minified and included inside the SDK so I am not sure of a clear way to use breakpoints and debug the decompression code.

Any suggestions on better ways to debug this or examples of integrating the viewer inside a native iOS application?

Stacktrace:
image

Current view when loading:
Simulator Screenshot - iPhone 15 Pro Max - 2024-01-16 at 11 25 54