Is there any private api for iphone that detect sms sent or received [closed]

偶尔善良 提交于 2019-12-09 01:31:19

问题


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

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

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

Thanks.


回答1:


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.

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.




回答2:


I have never did it myself, so I am not sure that it's possible.

However, if you are willing to go extra mile.

I would recommend you to look in couple of places (disassemble them and look how they work inside):

  • /System/Library/Frameworks/PrivateFrameworks/ChatKit.framework
  • /System/Libray/Messages/PlugIns/SMS.imservice
  • /System/Library/BulletinBoardPlugins/SMSBBPlugin
  • /System/Library/CoreServices/Springboard.app
  • /System/Library/PrivateFrameworks/IMFoundation.framework



回答3:


No, there is no any such type of API to getting sms sending/receiving notification on non-jail broken iPhone. Some of the services like Verizon providing API ,but such type of API is only working with Verizon network. On jail broken iPhone you can access internal SQLITE database.



来源:https://stackoverflow.com/questions/13933407/is-there-any-private-api-for-iphone-that-detect-sms-sent-or-received

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!