I want to read iPhone's sms history in my app. My application is for my own use (Enterprise distribution without jailbreak) and it's not for apple store so there is no limits for using private frameworks. The solutions I have tested so far are:
- Reading the sms database -> Didn't work because of sandbox restrictions.
- Using ChatKit; I saw
CKConversationList
class that has a method-(id)conversations
which I guess returns an array ofCKConversations
. Then I can retreive all the history. The problem isCKConversationList.sharedConversationList().conversations()
returns nil when I call it in my app. Although it doesn't return nil when I call it in MobileSMS process (I checked it with a tweak and tested it on a jailbroken phone). I saw a method named+(void)initialize
and I called it before calling the above method but it still doesn't work.
IMCore private framework could be used maybe but I don't know how.
Thanks in advanced:)