moezbhatti / qksms

The most beautiful SMS messenger for Android
https://qklabs.com/download
GNU General Public License v3.0
4.48k stars 1.06k forks source link

[Request] Improvement in OTP detection #1729

Open mizzunet opened 3 years ago

mizzunet commented 3 years ago

DESCRIPTION

Any chance for improvement in OTP detection? I used to use Microsoft's SMS Organizer, which does recognise OTP from almost all messages. I don't use it anymore because it is just buggy and from Microsoft. I love QKSMS. I have a suggestion; I don't know if it's even possible. Please consider

STEPS

  1. Check if there is"code" or "OTP" in the sender's name or the message. If yes, go to STEP3 or
  2. Detect if the message has continues numbers which are less than eight digits(some rare OTP has eight digits) or have six number where there is a hyphen(-) in the centre(WhatsApp's OTP for instance)
  3. Show notification as just OTP only with Copy and Delete buttons
jasonm23 commented 3 years ago

I have a small addition to this. As well as being delimited by spaces. Some OTP have a leading symbol e.g. = - :

I'd like these to be detected too.

mizzunet commented 3 years ago

I have a small addition to this. As well as being delimited by spaces. Some OTP have a leading symbol e.g. = - :

I'd like these to be detected too.

Right 👍