Xojo WE App in OSX desktop HTMLviewer: Your browser is not supported!

Test app: https://www.seminar.pro:9099

When trying to open the above URL in a HTMLViewer of a OSX 32bit desktop app, then I get the error: “Your browser is not supported”

Shouldn’t it be possible to open a Xojo Webapp in a Xojo HTMLViewer?

Sure it’s possible. Implement WebSession.AllowUnsupportedBrowser http://documentation.xojo.com/index.php/WebSession.AllowUnsupportedBrowser in your application. Mac OS X HTMLViewer is not the same as Safari.

Thanks Bob, I didn’t know of this one.

No worries. The Xojo framework is HUGE. It’s hard to know every part of it. Even with 15 years of using the language I still lookup stuff in the Language Reference every day.

The new framework makes it that much harder. :frowning:

You could also set the UserAgent property to the one you get from Safari.

[quote=228043:@Bob Keeney]No worries. The Xojo framework is HUGE. It’s hard to know every part of it. Even with 15 years of using the language I still lookup stuff in the Language Reference every day.

The new framework makes it that much harder. :([/quote]

I find myself doing just the same. Although I do know a large part already, it helps me focus to spend time in the LR. I do just the same in W3Schools for JavaScript and CSS.

I like very much the http://developer.xojo.com UI, in particular the tabs and the autocomplete. Just wish it had more examples.

Greg, is it not kind of paradoxical that Xojo Web does not support Xojo desktop HTMLViewer ? Would it not be possible to avoid the hassle of having to set the UA or go through AllowUnsupportedBrowser by recognizing it ? Sort of ensuring peace in the family …

As I recall there’s no user agent set in the htmlviewer by default at all, so there’s no way to identify it.

Maybe a good idea to add the advice to set the user agent in the LR. Lots of sites will balk at empty UA. Or badly detect the browser.