INDIA +91 882 616 7094 | USA +1 949 299 0280 | GERMANY +49 176 3465 1507 info@navyuginfo.com
One lesser hectic method to retrieve the OTP from SMS.

There is an android app/website:
mysms.com, it gives us free SMS push service, where you can get your text messages directly on a website.

Prerequisites to use this method:

  1. You should have an android phone
  2. Phone should be connected to Internet when script is running
  3. Phone should have an app “MySMS” installed
  4. User should have an account on mysms.com with that phone number

How does it work?

Whenever any message comes in your inbox, it will push it to your web account in a fraction of seconds and then use your automation scripts you can retrieve the message info from the webpage (which will have your OTP).

Setup one time, and use it for many times.

Advantages of using this method:

  1. The physical presence of your phone is not needed.
  2. You don’t need any extra appium script to automate your phone messaging app.
  3. You will get your OTP by hitting a simple Web URL.
  4. It will be easy to implement and fast for sure.

Limitations of this method:

  1. It depends on the Mobile network, if there is no cellular network, you won’t get any OTP.
  2. You need to have a dedicated android device /phone number in order to use it (this app is not free for iPhone devices).

I have tested this feature on my android phone and its working fine. There are other apps available in the market which provide you some kind of SMS push services, you can pick any app.

Also, for those who want to automate the OTP for any mobile number outside India, they can use this website – http://www.receive-sms-online.info/

Looking forward to getting some more efficient methods to resolve this problem. Please reply if anyone has any.