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?
With this function, if the app is in background or closed, the push notification will show, otherwise it will show an alert with title and body message