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.
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