title: FCM Notification how to send image using php?
body: <p>Want to send notification with image for that i use following code but still it is not working properly</p>
  
  <pre><code>{
      $msg = array
      (
          'body'  =&gt; 'here is a message. message',
          'title'     =&gt; 'This is a title',
          'subtitle'  =&gt; 'This is a subtitle. subtitle',
          'vibrate'   =&gt; 1,
          'sound'     =&gt; 1,
          'icon'  =&gt; 'url_image',
          'image' =&gt; 'url_image'
      );
      $fields = array
      (
          'registration_ids'  =&gt; array('id1','id2'),
          'notification'          =&gt; $msg,
  
      );
  
      $headers = array
      (
          'Authorization: key=my_serverkey',
          'Content-Type: application/json'
      );
  
      $ch = curl_init();
      curl_setopt( $ch,CURLOPT_URL, 'url of fcm ' );
      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 ) );
      $result = curl_exec($ch );
      curl_close( $ch );
  }
  </code></pre>
  
  <p>I get notification without image</p>
  
  <p>what is solution for it?</p>