How to work with Notifications on ios and android?

I want to enter some message, get a notification and then navigate to some other app. So basically i want to wait until i get the notifications.

Any suggestions??

You can swipe the screen and add a wait command for your notification

driver.openNotifications();
WebElement notificationElelement = (new WebDriverWait(driver, 10))
  .until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@text='What You are looking for')));

driver.openNotifications(); doesnt seem to work. It gives me the above error: The method openNotifications() is undefined for the type SeeTestIOSDriver

Any solution???

You can do what a manual user would have done - Swipe down.
driver.swipe(500,0,500,1000,1000);