简体   繁体   English

有什么方法可以从 Iphone 上收到的短信中获取发件人电话号码?

[英]Any way to get the sender phone number from a received sms on Iphone?

I realize the ios sandbox prevents you from viewing the contents of an SMS msg, but is there some kind of workaround?我意识到 ios 沙盒会阻止您查看 SMS 消息的内容,但是有某种解决方法吗? What about if the msgs are sent to a skype or google voice number, could an iphone application access the numbers then?如果将消息发送到 skype 或 google 语音号码,那么 iphone 应用程序可以访问这些号码吗? Thanks.谢谢。

In a sandboxed environment, No, you cannot access information in other applications or databases outside of your applications sandbox.在沙盒环境中,不,您无法访问应用程序沙盒之外的其他应用程序或数据库中的信息。 There is simply no way to do it without being jailbroken.没有越狱,根本没有办法做到这一点。 Apple would not allow such an app in the App Store either. Apple 也不允许在 App Store 中使用此类应用程序。

When you sign and package your app through Xcode (for submission to the iTunes App Store) it is packaged for distribution through a very specific process.当您通过 Xcode 签署并 package 您的应用程序(用于提交到 iTunes App Store)时,它会被打包以通过一个非常特定的过程进行分发。 Apps distributed this way are sandboxed.以这种方式分发的应用程序是沙盒的。 There is no way around this process for app packaged for the App Store.对于为 App Store 打包的应用程序,无法绕过此过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM