删除iOS 6上的消息 [英] Delete message on iOS 6

查看:126
本文介绍了删除iOS 6上的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为越狱的iOS设备开发一个应用程序。

I'm developing an app for jailbroken iOS devices.

我想删除用户收件箱中的邮件 - 我在SMS.db上删除了邮件(在消息表)但是当我去收件箱时,它仍然有空白内容和发件人的电话号码。
在iOS 5上,我使用 CKSMSRecordDelete 完美删除了它,但在iOS 6上, ChatKit.framework 不再有用了。

I want to delete a message from the user's Inbox - I deleted message on SMS.db (in the "message" table) but when I go to Inbox, it's still there with "blank" content and the sender's phone number. On iOS 5, I deleted it perfectly using the CKSMSRecordDelete, but on iOS 6, ChatKit.framework doesn't work any more.

推荐答案

在这里查看我的答案阻止ios6上的短信要从SMS.db中删除行,你需要使用IMDPersistence.framework

Check out my answer here Block sms on ios6 To delete rows from SMS.db you need to use IMDPersistence.framework

如果你想手动完成,那么你也应该从'chat'和'handle'表中删除行。但我不认为这会奏效。消息将从数据库中删除,但仍会显示在消息应用程序中。你可以尝试杀死'com.apple.imagent'守护进程。它处理iOS 6中的消息,并可能在内存中保留消息。它将自动重启并理想地重新加载SMS.db内容。

If you want to do it manually then you should also delete rows from 'chat' and 'handle' tables. But I don't think this will work. Message will be deleted from database but will still show up in Messages application. You could try and kill 'com.apple.imagent' daemon. It deals with messages in iOS 6 and possibly retains messages in memory. It's will automatically restart and ideally reload SMS.db contents.

这篇关于删除iOS 6上的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆