Read SMS message in iOS

后端 未结 5 961
情书的邮戳
情书的邮戳 2020-12-05 13:42

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

5条回答
  •  庸人自扰
    2020-12-05 14:47

    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.

提交回复
热议问题