My use case is this: PC desktop user, I want the browser to be closed, yet still receive push notifications (incoming email, for example) and decide on a case-by-case basis (by looking at the subject) whether I'll open the browser to read the message or not. The key functionality here, is to be able to look at the incoming mail's subject before opening the browser.
On Saturday, March 23, 2013 5:30:30 PM UTC+2, Stefan Arentz wrote: > On 2013-03-23, at 7:28 AM, Alexander Karelas <[email protected]> wrote: > > > > > The spec (https://wiki.mozilla.org/WebAPI/SimplePush) doesn't define how > > the app requests details from the AppServer about the empty notification it > > just received. See below for proof, an excerpt from the wiki page mentioned > > above: > > > > > > "This causes the App to refresh it's messages (again using XHR or some > > other > > > medium out of the scope of this protocol), and User gets a screen full > > of > > > adorable kittens." > > > > > > > > > If that's so, then there's no way to make a generic SimplePush application > > that sits and waits on the tray, and handles all apps. Because it won't > > know how to contact the AppServer to get the notification's details (such > > as "who wrote the incoming email"). > > > > This is on purpose to keep the API and protocol as simple as possible; there > is no application-defined payload, just the notification that tells your app > 'hey something happened, you better check with your back-end to get more > details.' > > > > What is your use case? > > > > S. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
