How Can We Read Incoming SMS by using Application in iOS

前端 未结 3 1260
时光说笑
时光说笑 2020-12-05 20:20

In my application I am able to send an SMS programatically to a particular mobile number when the user clicks submit button. Then there is a response message from that mobi

相关标签:
3条回答
  • 2020-12-05 20:56

    You can't read SMS, but you can auto fill a text field from SMS.

    From Apple Documentation :

    To ensure your text input view displays the right AutoFill suggestions, set the textContentType property on any relevant input views.

    so you can do the following :

    textField.textContentType = .oneTimeCode
    

    More info : check the link here

    0 讨论(0)
  • 2020-12-05 21:00

    Simply two words from Apple:

    Not Possible

    Detailed:

    An iOS app can only access the data for which Apple supplies a documented public API. iOS can not access outside of the sandbox until Apple provides a public API for it. So intercepting/reading an incoming SMS not possible. And no idea when the iOS device is jailbroken.

    0 讨论(0)
  • 2020-12-05 21:13

    No it's not possible in iOS, it's possible on jailbroken devices but you can not place your application in the App Store.

    0 讨论(0)
提交回复
热议问题