Accessing Notification Tray in Android

Hi ,

I am looking for some help to access the notification tray for Android device and select specific notification from the tray.

I have used “Swipe” which pulls the tray down but clears off the notifications of application under test as the “appPackage” and “appActivity” defined in the capabilities is of actual app under test.

How we can know the “appPackage” and and “appActivity” for the notification tray. I tried Android UI automator to locate various possibilities but I am unable to find anything that would solve the purpose.

Any suggestions on same or different lines would be helpful.