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

**URL:** <https://discuss.appium.io/t/installing-the-app-on-mobile-and-read-the-sms-code-using-appium/27838>\
**Category:** Support\
**Created:** [September 13, 2019, 1:22am UTC](https://discuss.appium.io/t/installing-the-app-on-mobile-and-read-the-sms-code-using-appium/27838 "2019-09-13T01:22:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pooja0907](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@Pooja0907](https://discuss.appium.io/u/Pooja0907)\
**Post date:** [September 13, 2019, 1:22am UTC](https://discuss.appium.io/t/installing-the-app-on-mobile-and-read-the-sms-code-using-appium/27838/1 "2019-09-13T01:22:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Pooja0907](https://discuss.appium.io/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@Pooja0907](https://discuss.appium.io/u/Pooja0907)\
**Post date:** [September 18, 2019, 1:36am UTC](https://discuss.appium.io/t/installing-the-app-on-mobile-and-read-the-sms-code-using-appium/27838/2 "2019-09-18T01:36:53Z")

</div>

@Aleksei Can you please help here?

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [September 18, 2019, 12:01pm UTC](https://discuss.appium.io/t/installing-the-app-on-mobile-and-read-the-sms-code-using-appium/27838/3 "2019-09-18T12:01:32Z")

</div>

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.
