HTMLViewer is old browser?

I’m trying to use the HTMLViewer component but Google tells me it’s an old browser… And I can’t go on. Why?
I’m using Xojo 2019r1.

Try this:

HTMLViewer1.LoadURL "https://mail.google.com"

Mac? Win? Linux?

I’m on Win 10 x64 using Xojo 2018R3 and no errors here

For MacOS, you can use WKWebViewControlMBS to use WebKit 2.x in a 64-bit application and get the newer WebKit engine.
The HTMLViewer on MacOS uses WebKit 1.x.

I use MacBook Pro (Retina, 15-inch, Mid 2015) with macOS Mojave 10.14.4

This is the Google Message:

I just tried it from 2018R3 on a Mac. Using Webkit or Native I get in but with the message:

“You have been redirected to the basic HTML version because this browser is not supported. To use standard view please upgrade to a supported browser.”

If I click on “Go to new version” I can’t go on.

Yes @Karen Atkocius , this is the Google answer!

@Christian Schmitz , I tryed WKWebViewControlMBS but get same message.

did you try WKWebViewControlMBS in a 64-bit app?

Or if they check user agent, it may be worth to set user agent and pretend to be Safari.

e.g.
with htmlview.CustomUserAgentMBS as String
or
with WKWebViewControlMBS.customUserAgent as String

Take a look at this:
HTMLViewer.UserAgent

Try setting the UserAgent to the settings for a specific browser.

As I’m on a Mac I changed the UserAgent in the open event to this:

[code]Dim agent as string = “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8”
Me.UserAgent = agent

me.LoadURL “https://mail.google.com”[/code]

and Gmail worked normally

Some other useful information on this thread: https://forum.xojo.com/45499-change-the-user-agent-name/0

google (for chrome), firefox and some of the other browsers are pushing hard to always be using the latest version, even it has been out for literally a minute. I will update my browser then 2 days later its telling me that its outdated and “has to be updated to a newer version”.

so I am betting that your user-agent is not telling gmail what it wants to hear so they are complaining. just like @Karen Atkocius said.

[quote=436964:@Christian Schmitz]e.g.
with htmlview.CustomUserAgentMBS as String
or
with WKWebViewControlMBS.customUserAgent as String[/quote]

I tried this example, but I have the same problem.

@Karen Atkocius Yesss! So it works!

[code]Dim agent as string = “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8”
Me.UserAgent = agent

me.LoadURL “https://mail.google.com”[/code]

Safari string (from El Capitan: 10.11.6, better use Safari String from Mojave):

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15

When I visit https://www.whatsmyua.info/ without setting UserAgent, I get:

so the only things missing are Version and Safari.

Because this is the first time I use UserAgent, I expected this code to work:

Me.UserAgent = Me.UserAgent + " Version/10.1.2 Safari/603.3.8" Me.LoadURL "https://mail.google.com"
but I keep getting “This version of Safari is no longer supported. Please upgrade to a supported browser. Dismiss”

It turns out that the above code just set the UserAgent as “Version/11.1.2 Safari/603.3.8”. You learn something new every day.