When using OneSignal for push notifications, the default behavior when receiving a push notification when app is in foreground is to show it as an alert.
We have a customizable option to modify this default behavior.
To enable this feature, you must add "inFocusDisplay": "none" under "services" -> "oneSignal" section in appConfig.json, or in Import/Export section when editing your app.
"services": {
"oneSignal": {
"active": true,
"applicationId": "xxxxx",
"inFocusDisplay": "none"
}
}