Can we get device notifications using AndroiDriver

Till the part to opening 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']")); 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?