I\'m an iOS developer and i have tried to build a mobile application with automatic activation functionality, i found more than way to read SMS message but only using privat
UPDATE
From iOS 12 Apple has given support to read the security code (OTP - One Time Passwords) in text fields.
oneTimeCode
Specifies the expectation of a single-factor SMS login code.
You can autocomplete security codes from single-factor SMS login flows:
yourSingleFactorCodeTextField.textContentType = .oneTimeCode
iOS supports Password AutoFill on UITextField, UITextView, and any custom view that adopts the UITextInput protocol.
Warning
If you use a custom input view for a security code input text field, iOS cannot display the necessary AutoFill UI.