title: sending push notification from php
body: <pre><code>&lt;?php
  
  $APPLICATION_ID = "XXXXXXXXXXXXXXX";
  $REST_API_KEY = "XXXXXXXXXXXXXX";
  
  $url = 'https://api.parse.com/1/push';
  
  $data = array(
      'channel' =&gt; 'News',
      'type' =&gt; 'ios',
      'expiry' =&gt; 1451606400,
      'data' =&gt; array(
          'alert' =&gt; 'Test Push',
          'sound' =&gt; 'push.caf',
      ),
  );
  $_data = json_encode($data);
  $headers = array(
      'X-Parse-Application-Id: ' . $APPLICATION_ID,
      'X-Parse-REST-API-Key: ' . $REST_API_KEY,
      'Content-Type: application/json',
      'Content-Length: ' . strlen($_data),
  );
  
  $curl = curl_init($url);
  curl_setopt($curl, CURLOPT_POST, 1);
  curl_setopt($curl, CURLOPT_POSTFIELDS, $_data);
  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
  curl_exec($curl);
  
  ?&gt;
  </code></pre>
  
  <p>I am using this script for sending push notifications. is it compulsory to mention channel? </p>
  
  <p>Whenever I run this script, I am not receiving any notifications while when I send from parse site, devices are receiving notifications. Please help.</p>