title: How to send push notification to web browser?
body: <p>I have been reading for past few hours about <a href="http://www.w3.org/TR/push-api/" rel="noreferrer">Push Notification API</a> and <a href="http://www.w3.org/TR/notifications/" rel="noreferrer">Web Notification API</a>. I also discovered that Google &amp; Apple gives push notification service for free via GCM and APNS respectively. </p>
  
  <p>I am trying to understand if we can implement push notification to browsers using Desktop Notification, which I believe is what Web Notification API does. I saw a google documentation on how this can be done for Chrome <a href="https://developers.google.com/cloud-messaging/chrome/client" rel="noreferrer">here</a> &amp; <a href="https://developers.google.com/web/fundamentals/getting-started/push-notifications/?hl=en" rel="noreferrer">here</a>.</p>
  
  <p>Now what am still not able to understand is:</p>
  
  <ol>
  <li>Can we use GCM/APNS to send push notification to all Web Browsers including Firefox &amp; Safari?</li>
  <li>If not via GCM can we have our own back-end to do the same?</li>
  </ol>
  
  <p>I believe all these answered in one answer can help a lot of people who are having similar confusions.  </p>