ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20864
Re: User agent on ubuntu touch
On Wed, Jun 1, 2016 at 10:35 AM, Hans Mayer <hans.mayer@xxxxxxx> wrote:
> Hello,
>
> Is there a possibility to change the user agent the web browser on UT sends
> to sites?
> E.G. slack.com does not support UT. When opening the site, I have no access
> to channels.
> If I can say "i am a desktop", the displayed data would be the same as on
> PC. This is ok on a Meizu 5 PRO.
Hello Hans,
There is currently no way of doing that through the UI. We have a user
agent override mechanism, but the list of overrides is currently
hardcoded in a system-wide file, so unless you make your phone system
writeable (not recommended), this list cannot be changed (if you are
willing to try at your own risk, I can send further instructions).
Sites that selectively enable features based on user-agent sniffing
are fairly broken, this is a thing from the past really. Unfortunately
this is still very much commonplace.
Can you report a bug to slack.com, requesting them to recognize the
default ubuntu touch UA string?
It looks like this:
Mozilla/5.0 (Linux; Ubuntu 15.04 like Android 4.4) AppleWebKit/537.36
Chromium/[chromiumVersion] Mobile Safari/537.36
(where chromiumVersion is currently hardcoded at 35.0.1870.2, but a
change will soon land that will make it dynamic, reflecting the
current version of chromium the web engine is based upon, which at the
time of writing is 50.0.2661.94)
Our browser is based on chromium, pretty much anything that works on
e.g. chrome on android should work exactly the same.
Thanks for the feedback!
Olivier
Follow ups
References