Not receiving notifications on appium driver if the app is closed or terminated

Hi Team,

I’m automating the notifications, but I’m facing an issue that I don’t receive the notifications if the application is closed or terminated on the appium driver. Whereas, if the app is open I get the expected notification.

Could you please help me with this?