I am developing ionic5 app and I integrated push notification using capacitor FCM push notification (https://capacitor.ionicframework.com/docs/guides/push-notifications-firebase/).
On Android i get notification alert (bannes and sound) only if app is in background mode, not in foreground or if app is closed. In the latter 2 cases, however, the pushNotificationReceived event still triggers but the notification banner does not appear and no sound. Testing on Huawei P10 Lite with EMUI 5.1 and Android 7.0
No issue on ios app, getting notifications even if I kill the ios app, background or foreground.
Am I doing something wrong?