I want to know a callback function that is automatically called and fill the OTP text field (after I receive the OTP code from firebase).
I have already tried: textfield.contentType = onetimecode.
But this is not what I am looking for, this just gives the otp code fetched from sms as a autocomplete. I am actually looking for a callback function that is auto fired after I receive OTP code on my phone.
I think picture makes it clear, I want to fill the textfield without tapping (keyboard placeholder thingy) the received OTP code.

