Keyboard never appears after sending application to background while autofill is visible

Hi, In my scenario, user enters credentials and and then goes to background to see OTP/TAN/OTC from other apps. Then he/she comes back and wants to enter OTP/TAN/OTC but keyboard never appears on the textfield.

After investigating the issue, i concluded that if there is a UITextField with secureTextEntry enabled, user sees autofill sheet (if autofill is enabled on the phone). Now if user does not responds to autofill and instead goes to backgroud and then comes back in the app, autofill-sheet is gone and keyboard now never appears anywhere in the app unltil user kills the app and reopens it.


Is this a known bug? any lead would be appriciated? Thanks.

Replies

I ended up doing a workaround for now. I changed the textContentType to OneTimeCode to avoid triggering the autofill for this screen.


Still would be great if i could find out that if i was doing something wrong or is it an iOS bug? Does autofill sheet usually disappears after putting the app to background?