title: Android 12 firebase push notifications don't work when app is in the background
body: <p>I'm sending test push notifications form <a href="https://console.firebase.google.com/u/0/project/onoff-fe614/notification/compose" rel="nofollow noreferrer">firebase&gt;compose notification page</a>. I receive push notifications on Android 8, 9, 10, 11, but not 12.</p>
  <p>And I have two devices on Android 12: physical phone Samsung S22 and Pixel emulator. In both cases Push Notifications don't appear in the Notification tray.</p>
  <p>Note:</p>
  <ul>
  <li>I'm speaking about notification which system shows in the Notification tray while app is being in the background. When app is in the foreground, then onMessageReceived works as expected on Android 12.</li>
  <li>token is correct</li>
  <li>in all cases I close the app in order to get Push in Notification tray</li>
  <li>if I use <code>android:exported=&quot;false&quot;</code> - still doesn't work</li>
  </ul>
  <p>My service in the android manifest:</p>
  <pre><code>        &lt;service
              android:name=&quot;.old.push.FCMHandlerService&quot;
              android:enabled=&quot;true&quot;
              android:exported=&quot;true&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;com.google.firebase.MESSAGING_EVENT&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  </code></pre>