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 the browser tab is contiuously polled for changes? It's not websockets that plays their part, is it? Is an OSD desktop notification of a website eqivalent to a WebApp always being active? So, the WebApp would show an integrated platform notification of Ubuntu Touch? Would be interesting to know, Peter Am Freitag, 14. August 2015 schrieb 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.net/~zaspire/oxide/web-notifications_v2 - support for basic W3C notifications, mostly when the application is *active* > - https://code.launchpad.net/~zaspire/oxide/push-messaging - that's the real push notifications, based on the recently adopted W3C proposal > When both get integrated, Webapps and HTML5 apps will be able to use the APIs to integrate with the Ubuntu Push Notification service. > But understand that at this point you will need to also get /server-side/ support for your app. > If you control both ends, ie you develop the webapp frontend, and manage the server as well, then you will be able to receive client registrations, route messages down to the Ubuntu end-point and to the individual devices and end-users. > But if you only control the view, like most webapp-container based apps, then you will only be able to see regular, in-app, notifications, to the extent supported by the originating site. And only when the app. lifecycle has your application running. This is why the push notification framework exists. To complement an application when it is not running. > The mobile world works on the assumption that an app or a device are not constantly active and connected. And I think the converged desktop will benefit from that evolution by not taking it for granted that the application is always on and always connected. Even for webapps which so far had been the epytome of that paradigm (!). > > On Thu, Aug 13, 2015 at 10:02 PM, Peter Bittner <peter.bitt...@gmx.net> wrote: >> >> 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 <o...@ubuntu.com>: >> > 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 only time when notifications directly from >> > the app work is while you are using it actively ... >> > >> > ciao >> > oli >> > >> >> -- >> Mailing list: https://launchpad.net/~ubuntu-phone >> Post to : ubuntu-phone@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~ubuntu-phone >> More help : https://help.launchpad.net/ListHelp > > -- Peter Bittner Ilgenstrasse 3, CH-8280 Kreuzlingen Privat: +41 71 535 6906 Mobil: +41 76 799 1682
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp