title: chat app FCM how to write a payload for both Android/iOS platforms
body: <p>I'm using FCM to send message from device to device by apply code below, its work perfect on all android devices and iPhone SE, other iPhone device (such as iPhone 6S, 7, 8, X) so on has no pop up the notification or alert, is that any payload code that suit for both platforms?.</p>
  
  <p>I had searched a lot difference solutions but still not working, could anyone help me, Thank you.</p>
  
  <pre><code>}).then(result =&gt; {
  
    const token_id = result.val();
    //const userNameGet = result[1].val();
  
    const payload = {
  
      notification: {
        title : "Message",
        body: `${userNameGlobal} has sent you a message`,
        sound: "default",
        priority: "high",
        icon: "default"
      }
    };
  
    return admin.messaging().sendToDevice(token_id, payload);
  
  }).then(response =&gt; {
    console.log('This was the notification feature.');
    return true;
  });
  </code></pre>