-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL for updating badge/tag (e.g. number of messages waiting) #268
Comments
Although the functionality is useful, this seems outside the scope of the manifest. The manifest is only concerned with metadata about a web application. What you seem to be describing is more of a "badges" API that would possibly work with background sync and push notifications (independently of the manifest - as the JSON data could be pushed or XHR'ed to the app, and possibly handled by a service worker in the background to update the badge as needed). A proposal similar to this has been made at Specifiction (with reference to Yandex's use case specifically): And there was some discussion about this at the WHATWG: I would recommend either pursuing this in public-webapps or in the WebMob IG. However, I would strongly encourage documentation of the use cases independently of the API - we can then work out how best to integrate this into the Web platform once we fully understand the requirements and how this would integrate with the badges provided by native platforms. |
Argh, so seems my emails on this subject to the WHATWG list never made it to that list. Here are my thoughts on the subject - it hopefully shows why this is better suited to be an API, rather than a kind of stream source in the manifest:
I'm closing this until we can work out where to best do this work. |
I'd like to re-open this. I agree that there is basically a specific API, but I think there should be a hook to it in the manifest. |
My concerns with this feature request are:
|
Thanks for re-opening.
|
I think we need to work from proprietary implementations - for which Yandex's use cases and experience are very illustrative and informative as one case. There are others: for instance, we are looking to add something similar in FxOS. https://groups.google.com/forum/#!topic/mozilla.dev.webapi/51bNe3VKaZE
This is what I would like to see. I don't have this evidence and would really like to see it first hand.
Format will matter if we want this to be interoperable. Hear me out: if Yandex uses their own format, but Mozilla uses, says
Agree. The representation of the badge is independent of what it means/does. - particularly for accessibility purposes.
Exactly.
Again, need to see proof of this (e.g., this is not the case in iOS, where push notification are used - or where the notifications are actually generated by the app itself).
Again, would be really helpful to have some help gathering the evidence that shows how these things are done in the wild on other platforms.
Firefox, at least, does not leak this data by pinging servers - not even when generating the tiles, as we generate the tiles in Safe Browsing Mode (as to not register the user as being logged into a site and helps anonymize the request to the server from which the thumbnail is generated). We take a screenshot that we use to populate tabs, but we certainly don't ping servers. Safari, does ping servers in the speed dial tabs (which is not great, as it even seems to send cookies). Chrome also seems to work as safari does: tho I am unsure if they are taking a screenshot of an open tab or if they are actually pinging a server to generate the thumbnail. In any case, they are using a logged in session to generate the thumbnail. |
Reviewing this again, I am reaching the same conclusion: the manifest is not the right place for this feature. There are other better better suited technologies or ways of addressing this then adding a URL to the manifest. |
In most systems that provide an icon for a webapp, there is a way to get variable information. For example messaging apps provide a count of unread messages waiting, auction apps can provide information about the current highest bid, event apps may provide a countdown timer, etc.
We should add this function to manifest.
Essentially we need a URL for the source of the data, and some standard "shape" to interpret the relevant parts of the response. One possible starting point is the "Feed" part of Yandex' Tableau API http://api.yandex.com/tableau/doc/index.xml#manifesto (which performs exactly this function).
But we're not worried about the specific design as much as enabling the functionality - pretty much everyone already has this in some for, which suggests it is a useful functionality to standardise.
The text was updated successfully, but these errors were encountered: