I can only do intercepted messages, but if the system is not credited to your inbox not thinking, hope the boss of you passing pointers.
Intercepted the message code as follows:
else if ([notifyname isEqualToString: @ "kCTMessageReceivedNotification"]) / / receive SMS
{
/ *
kCTMessageIdKey = "-2147483636";
kCTMessageTypeKey = 1;
* /
NSDictionary * info = (NSDictionary *) userInfo;
CFNumberRef msgID = (CFNumberRef) [info objectForKey: @ "kCTMessageIdKey"];
int result;
CFNumberGetValue ((CFNumberRef) msgID, kCFNumberSInt32Type, & result);
Class CTMessageCenter = NSClassFromString (@ "CTMessageCenter");
id mc = [CTMessageCenter sharedMessageCenter];
id incMsg = [mc incomingMessageWithId: result];
int msgType = (int) [incMsg messageType];
if (msgType == 1) / / experimentally detected number
{
id phonenumber = [incMsg sender];
NSString * senderNumber = (NSString *) [phonenumber canonicalFormat];
NSLog (@ "senderNumber is:% @ *************************", senderNumber);
id incMsgPart = [[incMsg items] objectAtIndex: 0];
NSData * smsData = [incMsgPart data];
NSString * smsText = [[NSString alloc] initWithData: smsData encoding: NSUTF8StringEncoding];
NSLog (@ "smsText is:% @ *************************", smsText);
}
}
Reply:
Allows the system to save the first, then find the API to delete messages that a try.
Reply:
Well it seems that the basic idea of the Internet is like the upstairs stated. Did not know which students can be more specific if the operator provides SMS database sms.db
Reply:
Other processes to operate the database must first ensure that the system, which do not possess
Also ...... program to break Apple sandbox restrictions without being refused ......
I can still see it
look API(Not done, nonsense)
No comments:
Post a Comment