PushNotificationPlugin icon indicating copy to clipboard operation
PushNotificationPlugin copied to clipboard

Android notification OnReceived conditions

Open craigvl opened this issue 4 years ago • 0 comments

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?

craigvl avatar Jun 02 '20 01:06 craigvl