jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
289 stars 184 forks source link

Feature Request: Phone Number Response Hint Status #223

Open AmitSonkhiya opened 6 months ago

AmitSonkhiya commented 6 months ago

Currently, if the device doesn't have a SIM attached or the Phone Number Hint API fails, the plugin returns null in Flutter, a string otherwise.

Is it possible to attach and get the status of the response additionally:

A phone number is selected and returned: RESULT_OK

There is no SIM at all: RESULT_NO_SIM The user selected None of the above: RESULT_NONE_OF_THE_ABOVE Play Library Hint API failed: RESULT_API_FAILED

And so on.

It offers more insights and helps developers to identify possible issues among a wide array of Android devices. And additional enforcement or alternative methods could also be added during the SMS authentication based on the response status.

Thanks