I am trying to create an SSB application that will access that web app.
When I put my web app’s URL into the HTMLView as, the HTMLViewer fails to render the web page.
me.LoadURL("some URL")
The text in the HTMLViewer window says the following
"Your browser is not supported. Please try using one of these other browsers:
Mozilla Firefox 17 or later
Google Chrome 37 or later
AppleSafari 7.1 or later
Microsoft Internet Explorer 10 or later
Microsoft Edge
I tried both Native and WebKit renderers with the same result.
I can create an SSB app for my web app for Mac using the “Fluid” application. I still need an SSB app for Windows. I was hoping to be able to create it with XOJO.
It is rather strange that a web app that is created with XOJO cannot be displayed in XOJO’s HTMLVIewer.
@Tim Jones I have an outdated MBS license for RealBasic/RealStudio. I will need to check with Christian how much he would charge for an upgrade.
Tim Parnell - trying to find out how to implement WebSession. At this moment I am completely lost with this regard. I cannot even find where in the IDE the WebSession is. I will keep looking.
Thank you, Tim. Probably, it would be easier for me just to use supported web browsers at the moment.
The main reason why I wanted SSB is that it does not have all the controls on the top of the window.
I have no control of what browser the users will be using. On the machines in the lab, I have installed the Colibri browser. It is a minimalistic one so my web app has more space for displaying its content.
WebSession is the base class for the Session object in your web app. In the document page Tim referred you to, just click the WebSession link to go to the WebSession page where it will tell you this and everything else about WebSession.
So in your web project, add the Event AllowUnsupportedBrowser to the Session object.
[quote=430838:@Val Kozmenko]Thank you all, guys, especially Tim and Jay.
To summarize the solution for someone who might have this issue in the future:
In the web application, find the Session object and add the AllowUnsupportedBrowser method
In the AllowUnsupportedBrowser event put the “Return True” code
Now the SSB app works with no problem.
Thank you very much again, guys.
VK[/quote]
Keep in mind that blindly returning True means that a user with a browser that isnt capable of running the app will now connect and have a less than perfect experience.
Instead, you should be looking at the user agent header in that event and only returning True for your specific browser.