Skip to content

not working on android 13 samsung device #102

Open
@aarie33

Description

@aarie33

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions