我正在使用pubnub作为iOS上的后端进行即时消息传递。经过一些谷歌搜索,我发现了这种方式,但对于斯卡拉。
http://scalabl3.github.io/pubnub-design-patterns/2015/02/26/Message-Update-Delete.html
我想知道API中是否存在存档方式?
答案 0 :(得分:2)
Pubnub目前不支持从邮件历史记录中删除内容。
答案 1 :(得分:1)
PubNub允许从频道中删除消息
例如:
let startDate = NSNumber(value: (15101397027611671 as CUnsignedLongLong))
let endDate = NSNumber(value: (15101397427611671 as CUnsignedLongLong))
self.client.deleteMessage().channel("channel").start( startDate ).end(
endDate).performWithCompletion ( { (status) in
if !status.isError {
// Messages within specified time frame has been removed.
} else {
/**
* Handle message history download error. Check 'category' property to find out possible
* issue because of which request did fail.
*
* Request can be resent using: status.retry()
*/
}
})
有关详细信息,请参阅pubnub documentation