faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

not getting OTP after creating aab file. #86

Closed umairalirehan closed 1 year ago

umairalirehan commented 1 year ago

I was getting auto OTP on android and it was working fine, but after few days when I create aab file I am not getting auto OTP on both apk and on aab.

useEffect(() => { getHash().then(console.log).catch(console.log); getOtp() .then(p => addListener(otpHandler)) .catch(p => console.log(p)); return () => removeListener(); }, []);

`const otpHandler = message => { try { const otp = message && (/(\d{4})/g.exec(message)[1] ?? ''); console.log('otp<<', otp);

  if (otpHandler !== null && otp) {
    setValue(otp);
    handleNavigate('HomeScreen');
    setValuesObj({...valuesObj, pin_code_sms: otp});
    // setOtpCode(otp);
    // removeListener();
    Keyboard.dismiss();
  }
} catch (error) {}

};`

faizalshap commented 1 year ago

Hi Umair, Please check the Hash. aab that is deployed on Play store has different hash key

On Fri, Mar 17, 2023 at 3:01 PM umair ali @.***> wrote:

I was getting auto OTP on android and it was working fine, but after few days when I create aab file I am not getting auto OTP on both apk and on aab.

— Reply to this email directly, view it on GitHub https://github.com/faizalshap/react-native-otp-verify/issues/86, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4BJUKRSALV5GIHFWZIZ3DW4QVPLANCNFSM6AAAAAAV6JF3AY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

umairalirehan commented 1 year ago

Hi Umair, Please check the Hash. aab that is deployed on Play store has different hash key On Fri, Mar 17, 2023 at 3:01 PM umair ali @.> wrote: I was getting auto OTP on android and it was working fine, but after few days when I create aab file I am not getting auto OTP on both apk and on aab. — Reply to this email directly, view it on GitHub <#86>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4BJUKRSALV5GIHFWZIZ3DW4QVPLANCNFSM6AAAAAAV6JF3AY . You are receiving this because you are subscribed to this thread.Message ID: @.>

you were right