Android Question Sms Reading (verification code)

Ertan

Active Member
Licensed User
Hello there

I will add sms verification in my application.

I have a question, very simple question.

In some applications, it automatically pasts the verification code in the sms on the sms verification screen to textbox & textview.

or on the top of the keyboard like in ios.

How can I do that?
 

aeric

Expert
Licensed User
Longtime User
Maybe you are looking for this
 
Upvote 0

Ertan

Active Member
Licensed User
Maybe you are looking for this
Hello, thanks for your answer. i saw this

In this application, we need to give SMS permission to retrieve the data of the incoming message.

But there are other applications such as; whatsapp automatically prints textview of the incoming message even if it does not have SMS permission. Or, like on iOS, it automatically writes the code in the message above the keyboard. Is there any way I can do this?
With B4A and B4i.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I never try this but you may give it a try:
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
No. I tried, even though my sms permissions were off, it received the code in the sms.
the only possible way whatsapp can do this is as @aeric suggested, they are using SMS retriever api from google , if not then i guess something is not right on our android devices
 
Upvote 0
Top