title: FCM push notification giving "error":"NotRegistered" in php
body: <p>i have one problem in <strong>FCM Push notification</strong>.in my php project.
  in my code i define different different array. when i print my array is giving me proper result so why when i run my file in browser it's giving me this error</p>
  
  <pre><code>{"multicast_id":7882239151284835554,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"NotRegistered"}]}end
  </code></pre>
  
  <p>please help me, Thanks.</p>
  
  <p>Hear is my code</p>
  
  <pre><code>    // Send Push Notification
  if($user['device_token'] != '') {
      $server_key = 'AAAA***********91Z9Y69';
      $registrationIds = 'dLDIms************SAss';
      $msg = array('body'  =&gt; "Your Wait is Over!",
                   'title' =&gt; "New stages unlocked. Let's Play!!",
                   'icon'  =&gt; 'myicon',/*Default Icon*/
                   'sound' =&gt; 'mySound'/*Default sound*/);
      $fields = array('to' =&gt; $registrationIds,
                      'data'  =&gt; $msg);
      $headers = array('Authorization: key=' . $server_key,
                       'Content-Type: application/json');
      //print_r($headers); die();
      #Send Reponse To FireBase Server    
      $ch = curl_init();
      curl_setopt( $ch,CURLOPT_URL, 'https://fcm.googleapis.com/fcm/send' );
      curl_setopt( $ch,CURLOPT_POST, true );
      curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
      curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
      // Disabling SSL Certificate support temporarly
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) );
      $result = curl_exec($ch );
      if ($result === FALSE) {
      die('Curl failed: ' . curl_error($ch));
      }
      curl_close( $ch );
      #Echo Result Of FireBase Server
      echo $result; 
      die('end');
      }
  </code></pre>