PushNotificationPlugin
PushNotificationPlugin copied to clipboard
Android notification OnReceived conditions
Guys,
Just a quick question regrading this if statement below that is found in the file [DefaultPushNotificationHandler.android.cs] (https://github.com/CrossGeeks/PushNotificationPlugin/blob/f02c67f4716dc9654d60d98f3543cc55653d0c7b/src/Plugin.PushNotification/DefaultPushNotificationHandler.android.cs#L146)
Are there any reasons behind the conditions here? It seems that when an Android notification is received and the app is in the foreground the above code prevents the notification from going into the tray, just wondering if there is a reason for this?