mobile view not working on secure web (citrix xenmobile)

hello all,

i was hoping somebody knew what triggers the "mobile view not supported in this browser", and where to find these tests in the code.

our sugar instance is behind a firewall so it was unreachable by phone until we got the Citrix Xenmobile/EMM, tried loading it with their secure web app and it throws that error, full site works fine minus zooming. reading the specs on the browser from citrix, it is using the native webview. the browser supports cookies, javascript (engine is javascriptcore), and localstorage/appcache. it should support any modern site with a mobile view.

im hoping either someone knows whats going on, or can point out where it throws this error page so i can add some debug output to see which technology is missing.

we have sugar 7.9.x, will update to 8.x when i have time

thank you for any help!

-matt

  • Found the code under mobile/js/nomad.js

    _isPlatformSupported: function d() {


    return $.os.ios && $.browser.safari && e.utils.versionCompare($.os.version, "8", ">=") || $.os.android && $.browser.chrome && e.utils.versionCompare($.os.version, "4.1", ">=") || !$.os.ios && !$.os.android && $.browser.webkit || e.config.env === "dev"


    }

    it checks for "browser" support with hard coded lines, which would return false with a custom browser like Xenmoble's secure web. Just delete out this line and always return true which forces it to load the mobile view, worked great for us so far (missing SSO though). Of course back up the nomad.js file first.