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

Having trouble in SmsRetriever

Open codingjeremy opened this issue 6 years ago • 3 comments

Issue by ankitPagalGuy Tuesday Nov 07, 2017 at 14:15 GMT Originally opened as https://github.com/googlesamples/android-credentials/issues/21


when first time , I insert phone no and wait for SMS , it does not auto fill the OTP here is log - 11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] Prefix does not match 11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [EndsWithStringMatcher] Found a match 11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] No matching message is found

But if go back and again fill the phone no , it fills the OTP here is log - 11-07 19:38:43.314 2143-2143/? I/SmsRetriever: [EndsWithStringMatcher] Found a match 11-07 19:38:43.314 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] Matched prefix:[#]

Have tried debugging but can't find anything

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by ithinkihaveacat Tuesday Nov 07, 2017 at 14:29 GMT


Not quite sure what could be causing this :-(.

Can you get the sample app to work? (For testing purposes you should be able to send text messages "manually" via adb or the emulator, rather than setting up the service.)

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by LOG-TAG Sunday Dec 31, 2017 at 16:49 GMT


@ithinkihaveacat I just want to know is the sample code updated to details explained in this video? https://www.youtube.com/watch?v=jzWYv8y2v1c

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by ithinkihaveacat Tuesday Jan 02, 2018 at 13:47 GMT


@LOG-TAG Yes, the sample code should match the video.

codingjeremy avatar Sep 10 '19 20:09 codingjeremy