|
Rank: Advanced Member Groups: Member
Joined: 10/4/2016 Posts: 104
|
Hi!
My first question of the year...
When one opens this URL chrome://version/ in the wrapper, we get a page with a bunch of interesting information:
For instance:
Chromium 62.0.3202.9 OS Windows WebKit 537.36 (@e0870e19d377d75fd6d32bdb84fd9ee4a5f35c60) JavaScript 6.2.414.2 Flash 24.0.0.194 User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.9 Safari/537.36
Is there some EO API that would returns those values (e.g EO.WebBrowser.Runtime.ChromiumVersion, ...)?
Certainly my code can easily retrieve the OS value but not sure about the other ones.
Thank you ... and HAPPY NEW YEAR 2018 :-)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, No. There isn't any API that would return that to you. We can certainly add it to this class similar to this method: https://www.essentialobjects.com/doc/jsdoc.public.webengine.eoapi.getversion.aspxThe above method returns EO DLL versions, not the browser engine version. We can add another method such as getChromiumVersion on this object. After that you can use something like this to retrieve the version:
Code: C#
string chromiumVersion = webView.EvalScript("eoapi.getChromiumVersion()") as string;
Please let us know if this would work for you. And happy new year to you too! Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/4/2016 Posts: 104
|
I think that would be a neat feature. Hence the users could check out immediately their Chromium version. Obviously not a critical feature though. Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, We have posted a new build that added this feature. You can now get the chromium version both on the C# side and the JavaScript side: https://www.essentialobjects.com/doc/eo.webengine.engine.version.aspxhttps://www.essentialobjects.com/doc/jsdoc.public.webengine.eoapi.getchromiumversion.aspxYou can download the new build from our download page. Please take a look and let us know how it goes. Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/11/2015 Posts: 122
|
I've always used navigator.userAgent for this, which gets you the right version as far as I've seen.
This wouldn't be true if you override your user agent values of course.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
James wrote:I've always used navigator.userAgent for this, which gets you the right version as far as I've seen.
This wouldn't be true if you override your user agent values of course. Yes. That will work too. Thanks for sharing!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2018 Posts: 4
|
Using version 18.0.70.0 the .NET Engine.Version is null.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Dan wrote:Using version 18.0.70.0 the .NET Engine.Version is null. The version will not be available until the Engine has actually been started. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2018 Posts: 4
|
That was my issue. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
You are welcome. Please feel free to let us know if there is anything else.
|
|