我们如何使用iOS中的应用程序读取传入的SMS

时间:2021-10-01 01:00:21

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 mobile number now I want to read that message and populate that SMS text in to my application.

在我的应用程序中,当用户单击提交按钮时,我能够以编程方式将SMS发送到特定的手机号码。然后有一个来自该手机号码的响应消息,我现在想要阅读该消息并将该SMS文本填充到我的应用程序中。

I searched for this and found that this is not possible in iOS. My question is there any possibility accessing inbox SMS with user permissions?

我搜索了这个,发现这在iOS中是不可能的。我的问题是有没有可能访问带有用户权限的收件箱短信?

2 个解决方案

#1


18  

Simply two words from Apple:

简单来自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.

iOS应用程序只能访问Apple提供文档化公共API的数据。在Apple为其提供公共API之前,iOS无法访问沙箱外部。因此无法拦截/读取传入的短信。并且不知道iOS设备什么时候越狱了。

#2


5  

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

不,它在iOS中是不可能的,它可能在越狱设备上,但你不能将你的应用程序放在App Store中。

#1


18  

Simply two words from Apple:

简单来自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.

iOS应用程序只能访问Apple提供文档化公共API的数据。在Apple为其提供公共API之前,iOS无法访问沙箱外部。因此无法拦截/读取传入的短信。并且不知道iOS设备什么时候越狱了。

#2


5  

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

不,它在iOS中是不可能的,它可能在越狱设备上,但你不能将你的应用程序放在App Store中。