问题
I am trying to develop an iOS app that detects incoming iMessages or Text Messages. I do not need to know the message content, who it's from, or any other things like that. I just want to be alerted when the user of my app receives a text message.
Does anyone know of any way to do this without jailbreaking? This app does not have to be app store approvable, so private APIs are a go if anyone knows of any.
Or is there a way to do this with Apple's APis? I have been reading around but have not found any answers. I know this might be a duplicate but I have not found any answered posts similar to this. All help is appreciated. If you need any additional information, drop a comment.
Thanks, Henry
回答1:
I found a private framework called ChatKit. It seems to have some great APIs related to sending and receiving text messages and calls. You should have a look. Hopefully this helps.
来源:https://stackoverflow.com/questions/17618738/detect-incoming-imessages-or-text-messages-ios