Automatic OTP verification in iOS?

In iOS 12 Apple has introduced feature called Security Code AutoFill. To use this in your app all you need to do is set UITextField‘s input view’s textContentType property oneTimeCode. otpTextField.textContentType = .oneTimeCode NOTE: Security Code AutoFill will only works with System Keyboard it will not work with custom keyboard. WWDC video When you get … Read more

OTP (token) should be automatically read from the message

I will recommend you not to use any third party libraries for auto fetch OTP from SMS Inbox. This can be done easily if you have basic understanding of Broadcast Receiver and how it works. Just Try following approach : Create single interface i.e SmsListner package com.wnrcorp.reba; public interface SmsListener { public void messageReceived(String messageText); … Read more