Notification not received when app is closed in Android

Hi,

I send an email from device 1 and check if notification is received in device 2. When the app is in background/foreground i am able to receive notification but when the app is closed, notification is not received.

Not able to figure out what is the issue. Can this not be done using Appium?

@Aleksei @mykola-mokhnach

Notification is functionality of your app. Appium does not affect it. e.g. with mine tests i see notifications with both android and ios apps under test without problems. ask your dev. try same manually…

Manually when i close the app, i am able to receive notifications. Only when i execute the same through automation scripts, notifications are not received.