I have implemented the message otp in Android following the documentation: https://developers.google.com/identity/sms-retriever/user-consent/request
However, when I receive the SmsRetriever.EXTRA_SMS_MESSAGE (Please go to step 3 in the link), there is no way to get the phone number of the sender.
When you start the SMS User Consent, as follows:
SmsRetriever.getClient(context).startSmsUserConsent(senderPhoneNumber /* or null */)
You can provide the sender number a priori, therefore, the api will filter the messages only for this number. However, I do not like this approach.
What I am trying to discover is how to identify the sender number after receiving the message.
Is there any approach to find the sms sender phone using this Api?