identity-samples icon indicating copy to clipboard operation
identity-samples copied to clipboard

SMS Retriever API auto fetch issue

Open codingjeremy opened this issue 6 years ago • 0 comments

Issue by AtifAbbAsi19 Monday Mar 18, 2019 at 11:37 GMT Originally opened as https://github.com/googlesamples/android-credentials/issues/36


SMS Verification with SMS Retriever API auto fetch issue

I'm trying to use Google's SMS Retriever API for Automatic SMS Verification, but there is an issue in it. previously , I was reading sender number using getOriginatingAddress() and if it's valid sender number then read OTP otherwise it should not read msg. As , forwarded OTP is disturbing user's privacy.

I have the following scenario.

My app is auto-fetching forwarded OTP messages.

User A installs app on his mobile and enters User B mobile number. User B receives OTP and forwards it to User A. App reads OTP on User A mobile and goes to home screen. is there any way around to get sender number?

codingjeremy avatar Sep 10 '19 20:09 codingjeremy