Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-21 Thread Mitchell Reese
-- *From:* Mitchell Reese *To:* ubuntu-phone@lists.launchpad.net *Sent:* Friday, August 14, 2015 8:06 AM *Subject:* Re: [Ubuntu-phone] [Development] Override user agent string in WebApp So what's the plan then for convergence? I get t

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread Christian Dywan
n too, is how application confinement and multiple application instance will be handled. From: Mitchell Reese To: ubuntu-phone@lists.launchpad.net Sent: Friday, August 14, 2015 8:06 AM Subject: Re: [Ubuntu-phone] [Development] Override user agent string in WebApp So what's the plan then for conver

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread David Barth
On Fri, Aug 14, 2015 at 11:48 AM, Peter Bittner wrote: > Thank you, David, for the elaborate explanation. > > Just for curiosity's sake, can you explain why desktop notification work > with Web browsers and the Ubuntu desktop, without any server-side control > from our side? (e.g web.skype.com wi

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread David Barth
Push notifications for webapps is not supported yet. Only Gmail and Twitter currently have some ad-hoc support via the account-polld service. Generic push notifications for webapps is in development, with 2 branches currently lined up for review and integration in Oxide: - https://code.launchpad.

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread Peter Bittner
Thank you, David, for the elaborate explanation. Just for curiosity's sake, can you explain why desktop notification work with Web browsers and the Ubuntu desktop, without any server-side control from our side? (e.g web.skype.com will show an OSD for incoming messages) Is this all just because th

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread nick luigi eusebio
application instancewill be handled. From: Mitchell Reese To: ubuntu-phone@lists.launchpad.net Sent: Friday, August 14, 2015 8:06 AM Subject: Re: [Ubuntu-phone] [Development] Override user agent string in WebApp So what's the plan then for convergence? I get that battery li

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-14 Thread Nathan Haines
On 08/13/2015 11:06 PM, Mitchell Reese wrote: So what's the plan then for convergence? Well, most likely the application lifecycle won't be constrained while desktop mode is active. There's no existential crisis here. Staged mode would be ludicrous on the desktop. Windowed mode would be l

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Mitchell Reese
So what's the plan then for convergence? I get that battery life is important for phones and tablets - heck, probably many IOT devices as well. Battery life however is NOT crucial for desktop machines, and probably never will be. What is crucial however is real multi-tasking... I get why Ubunt

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Christian Dywan
Hey Peter, When you say desktop right now that basically means X11 without any confinement in place and no lifecycle enforcement, so applications run happily and battery wastfully in the background at all times. On the other hand anything running Ubuntu Personal with Mir as the display serve

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Peter Bittner
Ouch, that's unfortunate. Users are already requesting notifications as a feature. Why is it possible to have desktop notifications on an Ubuntu desktop machine, and it's not possible on Ubuntu Touch? Are we using two different implementations here and there? (How is convergence going to work if t

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Niklas Wenzel
Yes, the Gmail notifications are created by the account-polld background service. That logic has nothing to do with the webapp. Am Do, 13. Aug, 2015 um 10:02 schrieb Peter Bittner : Oliver, I see that Gmail (the WebApp?) has push notifications on my device. Is this maybe related to the Online

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Peter Bittner
Oliver, I see that Gmail (the WebApp?) has push notifications on my device. Is this maybe related to the Online Accounts, and not the WebApp? Because the Gmail WebApp only has "accounts" as a policy group, nothing else. Peter 2015-08-13 17:54 GMT+02:00 Oliver Grawert : > hi, > Am Donnerstag, de

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Sergio Schvezov
On Thu, Aug 13, 2015 at 05:32:29PM +0200, Peter Bittner wrote: > Hi everyone, > > I don't think the server side is an issue here: Push notifications > work on the desktop (try https://web.skype.com in your Web browser, > even on Ubuntu, not only Windows or Mac). The browser asks for > permission w

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Oliver Grawert
hi, Am Donnerstag, den 13.08.2015, 17:32 +0200 schrieb Peter Bittner: > permission when you login. On Ubuntu Touch the same thing must happen. > I'm not sure I have seen this before (in a WebApp). except that your app is suspended when it is not having the focus or the screen is locked ... so the

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Peter Bittner
Hi everyone, I don't think the server side is an issue here: Push notifications work on the desktop (try https://web.skype.com in your Web browser, even on Ubuntu, not only Windows or Mac). The browser asks for permission when you login. On Ubuntu Touch the same thing must happen. I'm not sure I h

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Sergio Schvezov
On Thu, Aug 13, 2015 at 10:27:41AM -0400, Robert Schroll wrote: > On Thu, Aug 13, 2015 at 9:48 AM, Peter Bittner > wrote: > >It seems like adding "push-notification-client" to the .apparmor file > >doesn't make push notifications work in a WebApp. Is the documentation > >on [1] only applicable for

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Robert Schroll
On Thu, Aug 13, 2015 at 9:48 AM, Peter Bittner wrote: It seems like adding "push-notification-client" to the .apparmor file doesn't make push notifications work in a WebApp. Is the documentation on [1] only applicable for native apps? [...] (I must confess, I've simply added the value to the .

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Peter Bittner
Another question on Web apps: Push notifications. It seems like adding "push-notification-client" to the .apparmor file doesn't make push notifications work in a WebApp. Is the documentation on [1] only applicable for native apps? Skype for Web sends desktop notifications (the website asks you fo

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread Peter Bittner
Awesome, that works, thank you! We now have a working Skype WebApp for Ubuntu Touch. Enjoy! https://uappexplorer.com/app/skype.peter-bittner I've reported the misleading documentation (ubuntu-webapps-guide) at https://bugs.launchpad.net/developer-ubuntu-com/+bug/1484529 Cheers, Peter 2015-08-1

Re: [Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-13 Thread sturmflut
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. > >

[Ubuntu-phone] [Development] Override user agent string in WebApp

2015-08-12 Thread Peter Bittner
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=''