Does anyone know if it’s possible to directly send an iMessage using a private framework?
I tried using CTMessageCenter from CoreTelephony but it’ll send an SMS even though my phone can send iMessages.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t tested this, but look at the code posted here. If you look at
httpResponseForMethod:URI:, you see where he/she sends a message (appears to be hardcode to support iOS 5 or iOS 4):The code uses normal SMS, but you can see the following commented out code:
The “Madrid” service is probably what can send iMessages. See the private header here.
Both SMS and iMessage private APIs are in the ChatKit.framework.