title: php firebase push notification ios : ERROR InvalidRegistration
body: <pre><code>$url = &quot;https://fcm.googleapis.com/fcm/send&quot;;
  $token = &quot;xxx&quot;; 
  $serverKey = 'xxx';
  
  $title = &quot;Title&quot;;
  $body = &quot;Body of the message&quot;;
  
  $notification = array('title' =&gt;$title , 'text' =&gt; $body, 'body' =&gt; $body, 'sound' =&gt; 'default', 'badge' =&gt; '1');
  $arrayToSend = array('to' =&gt; $token, 'notification' =&gt; $notification,'priority'=&gt;'high', 'data' =&gt; $notification, 'content_available' =&gt; true);
  
  $json = json_encode($arrayToSend);
  $headers = array();
  $headers[] = 'Content-Type: application/json';
  $headers[] = 'Authorization: key='. $serverKey;
  
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_HEADER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);
  
  $response = curl_exec($ch);
  
  pre($response);
  
  curl_close($ch);
  </code></pre>
  <p>I CAN'T SEND NOTIFICATION</p>
  <p>{&quot;multicast_id&quot;:2200169071930988341,&quot;success&quot;:0,&quot;failure&quot;:1,&quot;canonical_ids&quot;:0,&quot;results&quot;:[{&quot;error&quot;:&quot;InvalidRegistration&quot;}]}</p>