title: ios-sending notification with firebase
body: <p>I'm trying to create app with notification. Notification must be sended from php file to firebase and then to device. At first i have tried to send with firebase console and it works perfect. But when i try to send notificaion using php then i have problems. It says successfully sended but i didn't get any notifications. there is my php for sending notification:</p>
  
  <pre><code>&lt;?php 
  function send_notification ($tokens, $message)
  {
  
      $url = 'https://fcm.googleapis.com/fcm/send';
      $fields = array(
           'to' =&gt; $tokens,
           'data' =&gt; $message
          );
      $headers = array(
          'Authorization:key = my api key',
          'Content-Type: application/json'
          );
     $ch = curl_init();
     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_VERIFYHOST, 0);  
     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);
     return $result;
  }
  
  $data = array("alert" =&gt; "How it is going today");
  $token = "fJVM7YrWGQg......";
  
  
  $message = array("message" =&gt; " FCM PUSH NOTIFICATION TEST MESSAGE");
  $message_status = send_notification($token, $message);
  echo $message_status;
  </code></pre>
  
  <p>?></p>
  
  <p>I have searched for fix it. But nothing helped. </p>