Installing the app on mobile and read the sms code using appium

Can we automate installation process of any app and read the sms for OTP?
if yes, from where we should start the installation and registration?
From downloading the app from app store or user has to download it installation process can be automated?

@Aleksei Can you please help here?

in general you can do it. same as other steps:

  • wait a bit after requesting sms
  • open notifications (in Android there is: driver.openNotifications(); on iOS swipe from above)
  • search for elements that represent SMS text and use text or tap on it and continue…

BUT i suggest take this SMS from your BackEnd via DB query or API request - 100 times more reliable.