jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
282 stars 174 forks source link

Not received SMS on emulator #116

Closed tazik561 closed 2 years ago

tazik561 commented 3 years ago

I have a question sir. I run example application and I press Listen for sms code and on emulator setting in phone section I send SMS but nothing is added in application ? It is possible do that?

jaumard commented 3 years ago

Never tried on an emulator before, but I guess it should work if your emulator have play services installed, and that you have setup the hashcode on your SMS correctly

tazik561 commented 3 years ago

I don't understand why need hashcode when sms center wants to send sms to user , how need to otp sms for registration into application?

It is not possible to get otp sms without added hashcode to end of sms? instead of <#> SampleApp: Your verification code is 1435 Z66b5+ou+DI it just be <#> Your verification code is 1435

jaumard commented 2 years ago

@tazik561 I don't make the rules :) it's how the API is working, check this: https://developers.google.com/identity/sms-retriever/overview?hl=en

jaumard commented 2 years ago

Closing as there is nothing I can do on my side if it didn't work on emulator