Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read Message from SMS REACT NATIVE

I am working on a log in process for a mobile app built in react-native... https://files.slack.com/files-pri/T039NS2ED-FHARU61LH/image_from_ios.jpg

I want to have some sort of "From messages tab" that auto fills my passcode. I was wondering if anyone knew something that could lead me in the right direction about this.

like image 586
rabiaasif Avatar asked Apr 02 '19 18:04

rabiaasif


People also ask

How do I read SMS react native?

Read SMS → Click to read the message by passing the id of the message. Delete SMS → Click to delete an SMS by passing the id of the message. Now if you have followed each step and completed all the phases then you are all set to check out the output or you can just clone the repo and start from there.

How do I send OTP to mobile number in react native?

Set up your Twilio Verify backendSign up for or log in to your Twilio account and create a new Verify Service. This is what will allow you to send SMS verification messages. Then head over to Twilio's Code Exchange and deploy the One Time Passcode (OTP) verification project.


1 Answers

For android you can try this npm

https://github.com/CentaurWarchief/react-native-android-sms-listener

https://github.com/Bruno-Furtado/react-native-sms-retriever

https://www.npmjs.com/package/react-native-get-sms-android

IOS sms reading is not possible but i have read this stackoverflow answer But I have no idea how to implement that! Automatic OTP verification in iOS?.

like image 107
Vishal Dhanotiya Avatar answered Sep 23 '22 08:09

Vishal Dhanotiya