title: Firebase push notifications vibrate in background
body: <p>I'm using <code>com.google.firebase:firebase-messaging:10.0.1</code> for Android and <strong>trying to make the device vibrate while application is in background and a push notification is received.</strong>
  I send following json to FCM server:</p>
  
  <pre><code>to: 'topics/...',
  notification: {
      title: 'New Message',
      body: 'top security body',
      sound: 'mysound',
      action_click: 'top_security'
  }
  </code></pre>
  
  <p>When the app is in foreground, the <code>onMessageReceived</code> method of <code>FirebaseMessagingService</code> is triggered and I can add vibration. But, when the app is in background, <code>onMessageReceived</code> is not called and I have no control on the vibration. My first thought was to use <code>data</code> block instead both for background and foreground, but iOS client does not receive pushes in background if there is no <code>notification</code> block.</p>
  
  <p>So how can I add vibration to push notification when the app is in background?
  P.S. When I turn on vibrate mode on the device, the push notification cause vibrating instead of playing the sound.</p>