App's notifications being cleared from the Notification Center when running @Test


I’m facing an issue when trying to Test push notifications on Android device (probably iOS as well), upon running the Test the App launches and clears all the Notifications from the Notification Center thus I cannot test any push notification.

One way I thought for dealing with this issue is by opening the Notification Center before launching the App,
but is there a better way for dealing with this issue?

Why the notifications are being cleared at the first place?

Cheers :slight_smile:

Facing the same issue… I am launching the application via Appium and get all the notifications cleared… Is there any way to keep the notifications after opening the app?

Have you maybe tried to set capabilities:

capabilities.setCapability(“noReset”, true);
capabilities.setCapability(“fullReset”, false);

This is not the cause, and I have these capabilities always. The problem is after each test, the appium force stops the application, which causes the notification to be disappeared. Can we have some solution for this?