<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 16, 2015 at 10:18 AM, Bastien Nocera <span dir="ltr"><<a href="mailto:hadess@hadess.net" target="_blank">hadess@hadess.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 2015-02-16 at 10:03 -0800, Jasper St. Pierre wrote:<br>
> Jon had multiple reasons:<br>
><br>
><br>
> 1. The main use for a counter like is "Unread Emails", a number that's<br>
> particularly high for Jon that he didn't think it would be too useful.<br>
> Notifications should be about the<br>
<br>
</span>About the?</blockquote><div><br></div><div>Sorry. "Notifications should be about the now."<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's also very low for a number of people.</blockquote><div><br></div><div>I've glanced at enough people's Gmails over the shoulder to know that's not the case.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can also be<br>
there to notify about the number of new podcasts episodes to read, the<br>
number of unread articles in my offline reader app, the number of unread<br>
messages in my chat application, or even the fact that there is an<br>
update available.<br>
<span class=""><br>
> 2. It's hard to figure out what the number even means sometimes, or<br>
> how to clear it. He showed me his iPhone which had some app which had<br>
> a "2" badge, and there was seemingly no explanation for it. So we<br>
> decided that we would always making it the number of unread<br>
> notifications, and keep the UI for clearing that badge consistent.<br>
<br>
</span>It can be turned off in the Notifications settings on iOS, and so will<br>
we be able to turn it off in GNOME.<br>
<span class=""><br>
> 3. It got stuck. Again, another app on his iPhone always listed that<br>
> he had 1 unread message, when the app itself had nothing. It was<br>
> definitely the number of unread messages, since it went up and down<br>
> when he got new messages, but, again, there's a "1" that he could<br>
> never clear because of an application bug.<br>
<br>
</span>Apps have bugs. Disable the badge, or remove the app then.<br>
<span class=""><br>
> Then, how do we implement this with the new notifications design in<br>
> GNOME? I don't see a place for a badge in<br>
> <a href="https://wiki.gnome.org/Design/OS/Notifications/Redux" target="_blank">https://wiki.gnome.org/Design/OS/Notifications/Redux</a><br>
<br>
</span>I would show it on the app's icon, not in a separate notification.<br></blockquote><div><br></div><div>Then why is it part of the notification? If I have broadcast a new notification with a new badge-number hint, does that replace the old one? What if I remove the notification with that hint? What do we display then?<br><br></div><div>Note that we replaced the FDO Notifications spec with a semi-private API when we introduced GNotification. Ryan was planning to standardize that API, so you should talk to him about it.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Look for badge in this to see the equivalent iOS notification API:<br>
<a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html#//apple_ref/doc/uid/TP40008194-CH103-SW13" target="_blank">https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html#//apple_ref/doc/uid/TP40008194-CH103-SW13</a><br>
<br>
Look for "badge".<br>
<div class="HOEnZb"><div class="h5"><br>
> On Mon, Feb 16, 2015 at 9:44 AM, Bastien Nocera <<a href="mailto:hadess@hadess.net">hadess@hadess.net</a>><br>
> wrote:<br>
>         On Mon, 2015-02-16 at 09:37 -0800, Jasper St. Pierre wrote:<br>
>         > Why and how?<br>
><br>
>         How what?<br>
><br>
>         >  Note that not giving applications the badge number was an<br>
>         explicit<br>
>         > design decision Jon, Cosimo and I made when we first<br>
>         introduced<br>
>         > notifications.<br>
><br>
>         I'd like some explanations as to why this decision was made<br>
>         though. This<br>
>         is useful for a number of applications, and would be<br>
>         configurable<br>
>         through the "Notifications" panel in GNOME (which we didn't<br>
>         have when<br>
>         this design decision was taken I guess).<br>
><br>
>         The server can also choose not to implement it (or cannot).<br>
><br>
>         > On Mon, Feb 16, 2015 at 9:21 AM, Bastien Nocera<br>
>         <<a href="mailto:hadess@hadess.net">hadess@hadess.net</a>><br>
>         > wrote:<br>
>         >         As discussed during the Wayland meeting at FOSDEM<br>
>         2015.<br>
>         >         ---<br>
>         >          docs/notification-spec.xml | 17 +++++++++++++++--<br>
>         >          1 file changed, 15 insertions(+), 2 deletions(-)<br>
>         ><br>
>         >         diff --git a/docs/notification-spec.xml<br>
>         >         b/docs/notification-spec.xml<br>
>         >         index fa1da0b..3bc0292 100644<br>
>         >         --- a/docs/notification-spec.xml<br>
>         >         +++ b/docs/notification-spec.xml<br>
>         >         @@ -3,8 +3,8 @@<br>
>         >          <article id="index"><br>
>         >           <articleinfo><br>
>         >            <title>Desktop Notifications<br>
>         Specification</title><br>
>         >         -  <releaseinfo>Version 1.2</releaseinfo><br>
>         >         -  <date>28 October 2010</date><br>
>         >         +  <releaseinfo>Version 1.3</releaseinfo><br>
>         >         +  <date>16 February 2015</date><br>
>         >            <authorgroup><br>
>         >             <author><br>
>         >              <firstname>Mike</firstname><br>
>         >         @@ -674,6 +674,19 @@<br>
>         >                <entry>&gt;= 1.2</entry><br>
>         >               </row><br>
>         >               <row><br>
>         >         +<br>
>         <entry><literal>"badge-number"</literal></entry><br>
>         >         +      <entry>INT32</entry><br>
>         >         +      <entry><br>
>         >         +        When set, a server can use it to show the<br>
>         number<br>
>         >         attached to<br>
>         >         +        the notification on top of the application<br>
>         icon<br>
>         >         referenced by the<br>
>         >         +        "desktop-entry" hint.<br>
>         >         +        Note that servers can choose not to show<br>
>         the number,<br>
>         >         either because<br>
>         >         +        they do not implement the capability, or in<br>
>         response<br>
>         >         to user<br>
>         >         +        configuration to suppress its display.<br>
>         >         +      </entry><br>
>         >         +      <entry>&gt;= 1.3</entry><br>
>         >         +     </row><br>
>         >         +     <row><br>
>         >                <entry><literal>"category"</literal></entry><br>
>         >                <entry>STRING</entry><br>
>         >                <entry><br>
>         ><br>
>         ><br>
>         ><br>
>         >         _______________________________________________<br>
>         >         xdg mailing list<br>
>         >         <a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
>         >         <a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
>         ><br>
>         ><br>
>         ><br>
>         > --<br>
>         >   Jasper<br>
>         ><br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
>   Jasper<br>
><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">  Jasper<br></div>
</div></div>