Open
Description
I am using a Samsung A52S with Android 13
My code cannot identify the received SMS.
I tried with a lower Android version (Android 9) and works well.
Any solution for this issue?
Thank you in advance
Version :
"react-native": "0.69.0",
"react-native-otp-verify": "^1.1.6",
Here is my code
import {
getHash,
startOtpListener,
removeListener,
useOtpVerify,
} from 'react-native-otp-verify';
useEffect(() => {
getHash().then(hash => {
console.log('hash sms :', hash);
console.log(hash);
}).catch(console.log);
startOtpListener(message => {
console.log('message startOtpListener');
console.log(message);
const smsOtp = /(\d{6})/g.exec(message)![1];
console.log('smsOtp: ', smsOtp);
})
return () => removeListener();
}, []);
Metadata
Metadata
Assignees
Labels
No labels