是否有任何iphone的私人api检测发送或接收的短信 [英] Is there any private api for iphone that detect sms sent or received

查看:172
本文介绍了是否有任何iphone的私人api检测发送或接收的短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现一个应用程序,在iPhone上接收或发送短信时检测事件。不需要读取短信。

I need to implement an app that detect an event when sms are received or sent on iPhone.Reading Sms is not required.

我的应用程序将在背景使用苹果的背景多任务功能为voip和导航器。

my app is going to run in background using apple's background multitasking feature for voip and navigators.

我可以使用私人api,因为我的客户端在appstore上不需要这个应用程序。

I can use private api as my client doesn't need this app on appstore.

谢谢。

推荐答案

绝对有可能检测到收到或发送短信的时间没有越狱设备,但我相信你只能访问短信的电话号码,而不是实际的短信。

It's definitely possible to detect when an SMS has been received or sent without jailbreaking the device, but I believe you can only access the phone number of the SMS, and not the actual message text.

你需要链接CoreTelephony私人api,并且然后使用CTTelephonyCenterAddObserver注册一个事件观察者。有关示例,请参见 http://tech.ruimaninfo.com/?p=83 。我已经确认这适用于iOS4,5和6。

You need to link against the CoreTelephony private api, and then register an event observer with CTTelephonyCenterAddObserver. See http://tech.ruimaninfo.com/?p=83 for an example. I've confirmed this works on iOS4, 5 and 6.

这篇关于是否有任何iphone的私人api检测发送或接收的短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆