Finding notification item after opening notification shade

Till the part to opening the notification shade, there isn’t any problem. But whenever I try to locate the notification of my app using the text
driver.findElement(By.xpath("//android.widget.TextView[@text='TitleText']")); also tried with text().
I am not able to click it because this textview is not clickable. Also, whenever I try to click or tap it appium crashes.
error: uncaughtException: Cannot read property 'sockets' of null date
Is there any solution for finding your notification item and click it?

We track messages on the notification shade, but we know what the messages will be, so we find by name (i.e. text) instead of xpath.

It just crashes no matter what I searched with ( or by.xpath). After openNotifications function appium server just crashes

I would open up a ticket on github

Hi, @willosser, is this solved? If not, can you please provide me the ticket number to track?

I don’t know. I asked @passenger to file a ticket on github

Hi @passenger, is it working for you now? If yes, then how? If no, then did you open any ticket for the same on git?

Worked in my case, it was a very silly mistake in logic. Apologies for bugging you guys.