Bug 513896

Summary: OTP code not detected in Apple ID SMS on Windows
Product: [Applications] kdeconnect Reporter: Bruno <handylex>
Component: desktop-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.11.80   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bruno 2025-12-27 22:36:31 UTC
SUMMARY
OTP code not detected in Apple ID SMS on Windows (KDE Connect 25.11.80)

STEPS TO REPRODUCE
1. Pair an Android phone with KDE Connect 25.11.80 on Windows
2. Receive an Apple ID verification SMS forwarded by KDE Connect
3. Observe the SMS notification on Windows

Example SMS text (dummy code):
"Your Apple ID verification code is:  123456"
(note the double space before the code)

OBSERVED RESULT
The SMS notification is shown correctly, but the OTP code is not detected and the "Copy code" button is missing.

EXPECTED RESULT
The OTP code should be detected and a "Copy code" button should be shown in the notification.

SOFTWARE/OS VERSIONS
Windows: Windows 10 / Windows 11
macOS: N/A
Linux/KDE Plasma: N/A
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: N/A

ADDITIONAL INFORMATION
Likely caused by overly strict OTP regex not handling double spaces or Unicode formatting common in iPhone SMS.