本文介绍了在onMessageSent中发送旧的已删除邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Sinch会在MessageClientListener的onMessageSent中发送旧的已删除邮件?这些消息已在我的解析后端中删除.我已经删除了手机上应用程序的数据,因此Sinch不应在本地使用此数据. Sinch从何处引入所有这些消息,我应该怎么做才能避免这种情况?

Why is sinch sending old deleted messages in onMessageSent of MessageClientListener? These messages were deleted in my Parse backend. I've deleted data of the app on phone, so sinch should n't have this locally. From where is Sinch bringing in all these messages and what should I do to avoid this?

推荐答案

您好,在这里传福音.

hi sinch evangelist here.

我将尝试对此进行解释.解析和Sinch彼此无关(我们有一个教程,向我们展示了如何像解析一样将消息保存到自己的后端).因此,从解析中删除这一事实与Sinch无关.

I am going to try and explain this. Parse and Sinch has nothing to do with each other (we have a tutorial where we show how you can save messages to your own backend like parse) So the fact that you delete from parse has nothing to do with Sinch.

关于邮件的传递,我们会将所有邮件传递给用户可能拥有的所有设备30天.

Regarding delivery of messages, we keep all messages for delivery to all devices a user might have for 30 days.

因此,如果您将应用安装在新设备上并登录,我们会将这些消息发送到该设备.而且我们认为这是一个功能:D

So if you i.e install your app on a new device and login we will ship those messages to that device. And we consider this to be a feature :D

我可以同意您的看法,有时可能会造成混淆,因为如果您卸载并安装应用程序,您将再次收到所有消息.

I can agree with you that it might be confusing sometimes, since if you uninstall and app you will get all messages again.

我可以看到一些针对此应用删除和消息删除的变通办法.您可以将消息标记为在分析中已删除并且不显示给用户,或者查看时间戳.

I can see a couple of workarounds for this delete of app and deletions of messages. You could either mark messages as deleted in parse and not display to the user, or look at timestamps.

这篇关于在onMessageSent中发送旧的已删除邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 01:30