ios - How to get sms /iMessage count of incoming and outgoing with private api without jailbreaking the phone -


this question has answer here:

i'm interested in getting count of incoming , outgoing messages phone.

nope, there no private api through can count of sms / imessage.

implement imessage programatically

with ios 10 use extension cant statistics.

https://developer.apple.com/imessage/

addition

nope, http://iphonedevwiki.net/index.php/chatkit.framework using chatkit can send , read imessage / sms , cant access other details count, message date, senders etc .

when user read imessage message , ckconversationmessagereadnotification notification getting posted. , observe notification , access details.

[[nsnotificationcenter defaultcenter] addobserver:mytarget selector:@selector(readawesomemessage:) name:@"ckconversationmessagereadnotification" object:nil];  -(void)readawesomemessage:(nsnotification *)notif {  ckimmessage *msg = notif.userinfo[@"ckmessagekey"];  //ckimmessage *msg = [[notif userinfo] objectforkey:@"ckmessagekey"]; -->long way same line above  //... } 

Comments