How use php curl to send push message in Firefox
<p>I have implemented push notifications for Chrome, and in the point when I need send push message to GCM, I used the following PHP function:</p>

<pre><code>function send_push_message($subscription_ids){
  // Set GCM endpoint
  $url = 'https://android.googleapis.com/gcm/send';

  $fields = array(
      'registration_ids' =&gt; $subscription_ids,
  );

  $headers = array(
      'Authorization: key=API_KEY',
      'Content-Type: application/json'
  );

  $ch = curl_init();

  // Set the url, number of POST vars, POST data
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));

  // Execute post
  $result = curl_exec($ch);
  if ($result === FALSE) {
      die('Push msg send failed in curl: ' . curl_error($ch));
  }

  // Close connection
  curl_close($ch);
}
</code></pre>

<p>(I have stored the subscriptions previously)</p>

<p>I think that I can do something like this for Firefox, using this url: <a href="https://updates.push.services.mozilla.com/push" rel="nofollow">https://updates.push.services.mozilla.com/push</a></p>

<p>But I don't know what I have to do.</p>

<p>I need register my website with Mozilla to do that, like in Google?</p>

<p>Please help!</p>