tttstudios / react-native-otp-input

Tiny Javascript library which provides an elegant UI for user to input one time passcode.
MIT License
530 stars 239 forks source link

In android 10 and 11 when you pull notification bar old OTP is filling #124

Open abhiramareddy20 opened 3 years ago

abhiramareddy20 commented 3 years ago

In android 10 and 11 when OTP is received pull the notification bar First time OTP will fill correctly. But after resending OTP when you try to pull notification bar instead of new OTP old OTP is filling again and again .

To Reproduce Steps to reproduce the behavior:

  1. Send OTP (in android 10 and 11)
  2. Pull notification bar
  3. OTP will autofill that is correct. Now resend the OTP
  4. Now pull notification bar. Instead if new OTP old one is filling again and again till you click copy in new OTP message that you received.

Expected behavior if new OTP is generated that OTP needs to fill when you pull notification bar.

Smartphone (please complete the following information):

thuynt99 commented 2 years ago

abhiramareddy20 Have any solution to fix that?

adsalihac commented 2 years ago

Same issue faced in latest version . please provide a solution to solve that issue

OS : Android 11 Checked devices : Mi , Vivo

adsalihac commented 2 years ago

Temporary solved this issue https://github.com/tttstudios/react-native-otp-input/issues/155