Selection of device (desktop/handheld/tablet) in HTML5 Viewer
Hi,
We encountered an issue where sometimes the viewer loads an incorrect index.html.
Upon investigation the code for function determineAppropriateShell in Html5Viewer/Resources/Compiled/loader.js:366-380 selects the appropriate shell based on User Agent. This method is inconsistent and will depending on the handheld device or tablet type load the desktop version of the viewer anyway.
A possible workaround would be to use media queries instead and base the selection on screen sizes for example.
Has anybody else encountered this issue? Is there an out-of-the-box way to work around this? Is Geocortex planning on including a fix in a later update? Has anyone already implemented a working custom fix for this?
With kind regards
0
-
Thanks Nico,
I did not find this thread myself. The thread seems to echo our findings within loader.js.
This at least will give us a proof towards our client that fixing this requires a customized approach to the loader.js file.0
Please sign in to leave a comment.
Comments
2 comments