Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
195 stars 43 forks source link

OTP reading fails on iOS 15 with lightning port #101

Open alexka28 opened 2 years ago

alexka28 commented 2 years ago

Hi! We experience that the OTP reading fails on iOS 15, where devices using lightning port. The issue is that the OTP is shorter than 44 characters, mostly we can read out only 43 chars, but sometimes only 42 or 41. As we see from our logs, the lightning port devices are affected. For the OTP reading we are using the same implementation as here: https://github.com/Yubico/yubikit-ios/blob/master/YubiKitDemo/YubiKitDemo/Demos/OTP/OTPUIResponder.swift We also tried out to set wantsPriorityOverSystemBehavior to true for the UIKeyCommands. Also tried it out in your YubiKitDemo app, and the same thing happens. I tried it with multiple devices and with multiple yubikeys. As I can see the problem is in the phone somewhere, because one of my phone works perfectly with all yubikeys and the other phone reads always shorter OTP's from all yubikeys. Our customers started to complain about this, why does it not work. Do you have any idea? I also checked the settings between our test phones, and there is no difference in the keyboard settings, language and region. Do you have any idea or are you aware of this issue? Thanks! Alex