Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working on android 13 samsung device #102

Open
aarie33 opened this issue Nov 21, 2023 · 1 comment
Open

not working on android 13 samsung device #102

aarie33 opened this issue Nov 21, 2023 · 1 comment

Comments

@aarie33
Copy link

aarie33 commented Nov 21, 2023

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();
  }, []);
@pushpender-singh-ap
Copy link
Contributor

Can you share sample repo with video sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants