<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27108</bug_id>
          
          <creation_ts>2014-10-20 15:52:24 +0000</creation_ts>
          <short_desc>Push API should be allowed without dependency on service worker</short_desc>
          <delta_ts>2015-10-06 11:37:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Push API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shijun Sun">shijuns</reporter>
          <assigned_to name="Bryan Sullivan">bs3131</assigned_to>
          <cc>annevk</cc>
    
    <cc>art.barstow</cc>
    
    <cc>bs3131</cc>
    
    <cc>cwilso</cc>
    
    <cc>efc</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113457</commentid>
    <comment_count>0</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-10-20 15:52:24 +0000</bug_when>
    <thetext>Open a bug to track the topic on the mailing list.
http://lists.w3.org/Archives/Public/public-webapps/2014OctDec/0179.html 

When the &quot;push client&quot; can handle generic actions (such as posting a toast notifications) waking up the browser (or a subset of it) and let service workers to display each notification might not be the best practice from performance perspective, especially when the user does not want to pick up each incoming video call or read each incoming emails right away.  The Push API spec should allow the web developers to have flexibility to leverage the generic actions, or rely on a service worker, or maybe do both.

I expect the generic message types should be scoped to a very small set.  Toast notification with a text message and an optional image should be a good starting point.  This will also lead to extensions to existing API.  For example, we should allow a webapp to construct a PushRegistrationManager based on a valid registrationId it got previously.  We should think through the details in the WG.

BTW, Martin Thomson mentioned another scenario [1] in the mailing list that can also benefit without having the service worker dependency.

[1] http://lists.w3.org/Archives/Public/public-webapps/2014OctDec/0140.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113460</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-10-20 15:58:34 +0000</bug_when>
    <thetext>What&apos;s the problem with requiring a service worker?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113462</commentid>
    <comment_count>2</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2014-10-20 16:05:48 +0000</bug_when>
    <thetext>[ Bryan, Eduardo, Michael - rather than track Push API bugs via Bugzilla and Github Issues, perhaps you should converge on one (probably Github). ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113463</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2014-10-20 16:06:47 +0000</bug_when>
    <thetext>Even more directly - what&apos;s the Push &quot;client&quot;, if not code inside the SW?  How do you &quot;handle&quot; actions without somewhere to hang that code?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113465</commentid>
    <comment_count>4</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-10-20 16:15:24 +0000</bug_when>
    <thetext>(In reply to Chris Wilson from comment #3)
&gt; Even more directly - what&apos;s the Push &quot;client&quot;, if not code inside the SW? 
&gt; How do you &quot;handle&quot; actions without somewhere to hang that code?

Based on Fig. 1 of the spec, the client is implemented in the UA or the system it runs on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113515</commentid>
    <comment_count>5</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-10-21 04:47:53 +0000</bug_when>
    <thetext>(In reply to Arthur Barstow from comment #2)
&gt; [ Bryan, Eduardo, Michael - rather than track Push API bugs via Bugzilla and
&gt; Github Issues, perhaps you should converge on one (probably Github). ]

I&apos;ll copy the bug to Github.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123517</commentid>
    <comment_count>6</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2015-10-06 11:37:31 +0000</bug_when>
    <thetext>This bug has been moved to a Github issue &lt;https://github.com/w3c/push-api/issues/84&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>