Read SMS message in iOS

后端 未结 5 970
情书的邮戳
情书的邮戳 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:21

    From iOS 12 Apple will supports Password AutoFill on UITextField, UITextView, and any custom view that adopts the UITextInput protocol. System keyboard set the textContentType on it to .oneTimeCode

    • Using storyboard/XIB

    Select UITextField/UITextView in storyboard/XIB click Click on Attribute inspector. Go to text input trait, click to Content type and select one time code and done.

    It only works with System keyboard. So avoid using the custom keyboard.


    And for more information, you will also review WWDC 2018 Session 204 - Automatic Strong Passwords and Security Code AutoFill and jump to 24:28 for automatic pre-fill the OTP.

提交回复
热议问题