← Back to team overview

ubuntu-phone team mailing list archive

Re: [Development] Override user agent string in WebApp

 

Hey Peter,

according to "webapp-container --help" the parameter is supposed to be
"--user-agent-string=". Seems to work for me.

cheers,
Simon



On 08/13/2015 12:55 AM, Peter Bittner wrote:
> I'm working on the Skype (Unofficial) WebApp [1] for Ubuntu Touch, and I
> need some clarifications.
> 
> According to the Ubuntu WebApps Guide [2] it is possible to override the
> browser's user agent string. This has to be done in the project's
> .desktop file (e.g. [3]) using the --user-agent-override='<string>'
> argument.
> 
> Unfortunately, this seems to have no effect. I've tested this with a
> WebApp that opens a website showing the user agent sent, and it displays
> the usual Ubuntu Touch user agent instead of the specified one.
> 
> Can anybody confirm this argument has ever worked? Or is there something
> I'm doing wrong? Thanks for any hint, Peter
> 
> [1] https://github.com/bittner/skype
> [2] https://developer.ubuntu.com/en/web/ubuntu-webapps-guide/
> [3] https://github.com/bittner/skype/blob/master/skype.desktop#L6
> 
> 
> 



Follow ups

References