-1

I was using the Turbo Tax app, and I noticed something:

For security, it sent an OTP as a text message with a 5 digit code. And normally it would ask me to enter the code, but as soon as the text came in, it got auto verified.

So how would one pull data from an SMS and use it in an Android Application?

Thank you.

Mihir Khandekar
  • 108
  • 1
  • 16
dcarney999
  • 51
  • 7

2 Answers2

1

There are ways to listen for incoming text messages in Android, using a BroadcastReceiver.

This answer would help you.

Community
  • 1
  • 1
Mihir Khandekar
  • 108
  • 1
  • 16
1

Create a SMS Broadcast receiver, Your application will be able to receive SMS events with message. You can then parse the data of the SMS received.